X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fgetansreadline.c;h=2fd06186d29a0ac890a3459e3b999df9616f82d0;hb=0f0af4e32a4d734209c16282b63f7cb1094e2699;hp=0daaa49bae06c73301b20fadd756c291dcd6736b;hpb=3a85e0bc9c72935ca9d154b3aa3093c31ed1836e;p=mmh diff --git a/sbr/getansreadline.c b/sbr/getansreadline.c index 0daaa49..2fd0618 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';