X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/3a85e0bc9c72935ca9d154b3aa3093c31ed1836e..47dca82001bf41dcd6954f72d2d27e3fbc2e8e9d:/sbr/getansreadline.c diff --git a/sbr/getansreadline.c b/sbr/getansreadline.c index 0daaa49b..2fd06186 100644 --- a/sbr/getansreadline.c +++ b/sbr/getansreadline.c @@ -9,7 +9,7 @@ #include #include -#include +#include #include #include @@ -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 */ @@ -177,6 +177,8 @@ nmh_completion(const char *text, int start, int end) { char **matches; + NMH_UNUSED (end); + matches = (char **) NULL; if (start == 0) @@ -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';