From: David Levine Date: Sat, 24 Mar 2012 14:04:34 +0000 (-0500) Subject: Cleaned up compile warnings. X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=5f2ff254eb4949a28a844a627b1ad1e10ec76d0c;p=mmh Cleaned up compile warnings. --- diff --git a/sbr/getansreadline.c b/sbr/getansreadline.c index 0daaa49..7c862f2 100644 --- a/sbr/getansreadline.c +++ b/sbr/getansreadline.c @@ -24,9 +24,9 @@ static char **nmh_completion(const char *, int, int); static void initialize_readline(void); static char ansbuf[BUFSIZ]; +#if 0 static sigjmp_buf sigenv; -#if 0 /* * static prototypes */ @@ -175,6 +175,8 @@ initialize_readline(void) static char ** nmh_completion(const char *text, int start, int end) { + NMH_UNUSED (end); + char **matches; matches = (char **) NULL; @@ -197,7 +199,7 @@ nmh_command_generator(const char *text, int state) len = strlen(text); } - while (name = rl_cmds[list_index].sw) { + while ((name = rl_cmds[list_index].sw)) { list_index++; strncpy(buf, name, sizeof(buf)); buf[sizeof(buf) - 1] = '\0';