diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-10 10:41:38 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-10 10:41:38 +0000 |
commit | cba3a2f44a0fb3df55ff2d97440ef67e94a5a243 (patch) | |
tree | 09ca4f3d692958918b56b06dfbefdf12ba69b7a0 /build_tools | |
parent | 0b9d26e5a1e6872ef5c3153bc4e23be3cdf0c62d (diff) |
provide a correct return value in case everything goes well,
so you won't get random failures running menuselect.
Detected by -Wall -Werror
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26346 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'build_tools')
-rw-r--r-- | build_tools/menuselect.c | 2 | ||||
-rw-r--r-- | build_tools/menuselect_curses.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/build_tools/menuselect.c b/build_tools/menuselect.c index b3400ffb8..9705af7fd 100644 --- a/build_tools/menuselect.c +++ b/build_tools/menuselect.c @@ -633,6 +633,7 @@ static int sanity_check(void) } } } + return 0; /* all good... */ } /* \brief Set the forced default values if they exist */ @@ -725,5 +726,6 @@ int main(int argc, char *argv[]) if (force_clean) unlink(".lastclean"); + fprintf(stderr, "\nmenuselect about to exit with res %d\n", res); exit(res); } diff --git a/build_tools/menuselect_curses.c b/build_tools/menuselect_curses.c index 13fc86eb5..d8bedc202 100644 --- a/build_tools/menuselect_curses.c +++ b/build_tools/menuselect_curses.c @@ -128,7 +128,7 @@ void draw_category_menu(WINDOW *menu, struct category *cat, int start, int end, int j = 0; struct member *mem; char buf[64]; - char *desc = NULL; + const char *desc = NULL; wclear(menu); |