Updates to test/common.sh.in:
[mmh] / sbr / getansreadline.c
index 0daaa49..2fd0618 100644 (file)
@@ -9,7 +9,7 @@
 
 #include <h/mh.h>
 #include <h/signals.h>
-#include <h/m_setjmp.h>
+#include <setjmp.h>
 #include <signal.h>
 #include <errno.h>
 
@@ -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';