[svn-commits] seanbright: branch 1.0 r684 - /branches/1.0/menuselect_curses.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Dec 23 11:58:55 CST 2009


Author: seanbright
Date: Wed Dec 23 11:58:54 2009
New Revision: 684

URL: http://svnview.digium.com/svn/menuselect?view=rev&rev=684
Log:
waddstr() on OpenSolaris doesn't take a const char *, so cast to avoid a warning.

Modified:
    branches/1.0/menuselect_curses.c

Modified: branches/1.0/menuselect_curses.c
URL: http://svnview.digium.com/svn/menuselect/branches/1.0/menuselect_curses.c?view=diff&rev=684&r1=683&r2=684
==============================================================================
--- branches/1.0/menuselect_curses.c (original)
+++ branches/1.0/menuselect_curses.c Wed Dec 23 11:58:54 2009
@@ -107,7 +107,7 @@
 	wclear(win);
 	for (i = 0; i < (sizeof(help_info) / sizeof(help_info[0])); i++) {
 		wmove(win, i, max_x / 2 - 15);
-		waddstr(win, help_info[i]);
+		waddstr(win, (char *) help_info[i]);
 	}
 	wrefresh(win);
 	getch(); /* display the help until the user hits a key */
@@ -192,7 +192,7 @@
 
 	if (mem->displayname) {
 		wmove(menu, end - start + 2, max_x / 2 - 16);
-		waddstr(menu, mem->displayname);
+		waddstr(menu, (char *) mem->displayname);
 	}
 	if (!AST_LIST_EMPTY(&mem->deps)) {
 		wmove(menu, end - start + 3, max_x / 2 - 16);
@@ -429,7 +429,7 @@
 	wmove(title, 1, (max_x / 2) - (strlen(titlebar) / 2));
 	waddstr(title, titlebar);
 	wmove(title, 2, (max_x / 2) - (strlen(menu_name) / 2));
-	waddstr(title, menu_name);
+	waddstr(title, (char *) menu_name);
 	wmove(title, 3, (max_x / 2) - (strlen(titlebar) / 2));
 	waddstr(title, titlebar);
 	wmove(title, 5, (max_x / 2) - (strlen(MENU_HELP) / 2));




More information about the svn-commits mailing list