X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fgetansreadline.c;h=7c862f2dd5917bd06f1eebfec89f70d5c166352e;hb=5f2ff254eb4949a28a844a627b1ad1e10ec76d0c;hp=0daaa49bae06c73301b20fadd756c291dcd6736b;hpb=e1478073a486f07aa346772de0d48bec3a29536b;p=mmh 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';