projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1) Don't bother checking stderr output from sendfiles because tar's
[mmh]
/
sbr
/
getansreadline.c
diff --git
a/sbr/getansreadline.c
b/sbr/getansreadline.c
index
0daaa49
..
2fd0618
100644
(file)
--- a/
sbr/getansreadline.c
+++ b/
sbr/getansreadline.c
@@
-9,7
+9,7
@@
#include <h/mh.h>
#include <h/signals.h>
#include <h/mh.h>
#include <h/signals.h>
-#include <h/m_setjmp.h>
+#include <setjmp.h>
#include <signal.h>
#include <errno.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];
static void initialize_readline(void);
static char ansbuf[BUFSIZ];
+#if 0
static sigjmp_buf sigenv;
static sigjmp_buf sigenv;
-#if 0
/*
* static prototypes
*/
/*
* static prototypes
*/
@@
-177,6
+177,8
@@
nmh_completion(const char *text, int start, int end)
{
char **matches;
{
char **matches;
+ NMH_UNUSED (end);
+
matches = (char **) NULL;
if (start == 0)
matches = (char **) NULL;
if (start == 0)
@@
-197,7
+199,7
@@
nmh_command_generator(const char *text, int state)
len = strlen(text);
}
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';
list_index++;
strncpy(buf, name, sizeof(buf));
buf[sizeof(buf) - 1] = '\0';