projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e147807
)
Cleaned up compile warnings.
author
David Levine
<levinedl@acm.org>
Sat, 24 Mar 2012 14:04:34 +0000
(09:04 -0500)
committer
David Levine
<levinedl@acm.org>
Sat, 24 Mar 2012 14:04:34 +0000
(09:04 -0500)
sbr/getansreadline.c
patch
|
blob
|
history
diff --git
a/sbr/getansreadline.c
b/sbr/getansreadline.c
index
0daaa49
..
7c862f2
100644
(file)
--- 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];
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
*/
@@
-175,6
+175,8
@@
initialize_readline(void)
static char **
nmh_completion(const char *text, int start, int end)
{
static char **
nmh_completion(const char *text, int start, int end)
{
+ NMH_UNUSED (end);
+
char **matches;
matches = (char **) NULL;
char **matches;
matches = (char **) NULL;
@@
-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';