[asterisk-commits] trunk r26346 - in /trunk/build_tools: menuselect.c menuselect_curses.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed May 10 03:41:38 MST 2006


Author: rizzo
Date: Wed May 10 05:41:38 2006
New Revision: 26346

URL: http://svn.digium.com/view/asterisk?rev=26346&view=rev
Log:

provide a correct return value in case everything goes well,
so you won't get random failures running menuselect.

Detected by -Wall -Werror


Modified:
    trunk/build_tools/menuselect.c
    trunk/build_tools/menuselect_curses.c

Modified: trunk/build_tools/menuselect.c
URL: http://svn.digium.com/view/asterisk/trunk/build_tools/menuselect.c?rev=26346&r1=26345&r2=26346&view=diff
==============================================================================
--- trunk/build_tools/menuselect.c (original)
+++ trunk/build_tools/menuselect.c Wed May 10 05:41:38 2006
@@ -633,6 +633,7 @@
 			}
 		}
 	}
+	return 0;	/* all good... */
 }
 
 /* \brief Set the forced default values if they exist */
@@ -725,5 +726,6 @@
 	if (force_clean)
 		unlink(".lastclean");
 
+	fprintf(stderr, "\nmenuselect about to exit with res %d\n", res);
 	exit(res);
 }

Modified: trunk/build_tools/menuselect_curses.c
URL: http://svn.digium.com/view/asterisk/trunk/build_tools/menuselect_curses.c?rev=26346&r1=26345&r2=26346&view=diff
==============================================================================
--- trunk/build_tools/menuselect_curses.c (original)
+++ trunk/build_tools/menuselect_curses.c Wed May 10 05:41:38 2006
@@ -128,7 +128,7 @@
 	int j = 0;
 	struct member *mem;
 	char buf[64];
-	char *desc = NULL;
+	const char *desc = NULL;
 
 	wclear(menu);
 



More information about the asterisk-commits mailing list