projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added newline to "send" that's piped to dist. Old 2.6 Linux
[mmh]
/
uip
/
msh.c
diff --git
a/uip/msh.c
b/uip/msh.c
index
3a5cc97
..
b3aa3a1
100644
(file)
--- a/
uip/msh.c
+++ b/
uip/msh.c
@@
-153,11
+153,8
@@
int told_to_quit; /* SIGQUIT detected */
/*
* prototypes
*/
/*
* prototypes
*/
-int SOprintf (char *, ...); /* from termsbr.c */
-int sc_width (void); /* from termsbr.c */
void fsetup (char *);
void setup (char *);
void fsetup (char *);
void setup (char *);
-FILE *msh_ready (int, int);
void readids (int);
int readid (int);
void display_info (int);
void readids (int);
int readid (int);
void display_info (int);
@@
-176,7
+173,6
@@
static int read_map (char *, long);
static int read_file (long, int);
static void m_gMsgs (int);
static int read_file (long, int);
static void m_gMsgs (int);
-FILE *msh_ready (int, int);
static int check_folder (int);
static void scanrange (int, int);
static void scanstring (char *);
static int check_folder (int);
static void scanrange (int, int);
static void scanstring (char *);
@@
-239,10
+235,10
@@
main (int argc, char **argv)
case HELPSW:
snprintf (buf, sizeof(buf), "%s [switches] file", invo_name);
print_help (buf, switches, 1);
case HELPSW:
snprintf (buf, sizeof(buf), "%s [switches] file", invo_name);
print_help (buf, switches, 1);
- done (1);
+ done (0);
case VERSIONSW:
print_version(invo_name);
case VERSIONSW:
print_version(invo_name);
- done (1);
+ done (0);
case IDSW:
if (!(cp = *argp++) || *cp == '-')
case IDSW:
if (!(cp = *argp++) || *cp == '-')
@@
-808,6
+804,7
@@
msh_ready (int msgnum, int full)
register int msgp;
int fd;
char *cp;
register int msgp;
int fd;
char *cp;
+ NMH_UNUSED (full);
if (yp) {
fclose (yp);
if (yp) {
fclose (yp);
@@
-1582,6
+1579,7
@@
seq_setcur (struct msgs *mp, int msgnum)
static void
intrser (int i)
{
static void
intrser (int i)
{
+ NMH_UNUSED (i);
discard (stdout);
interrupted++;
}
discard (stdout);
interrupted++;
}
@@
-1590,6
+1588,7
@@
intrser (int i)
static void
pipeser (int i)
{
static void
pipeser (int i)
{
+ NMH_UNUSED (i);
if (broken_pipe++ == 0)
fprintf (stderr, "broken pipe\n");
told_to_quit++;
if (broken_pipe++ == 0)
fprintf (stderr, "broken pipe\n");
told_to_quit++;
@@
-1600,6
+1599,7
@@
pipeser (int i)
static void
quitser (int i)
{
static void
quitser (int i)
{
+ NMH_UNUSED (i);
told_to_quit++;
interrupted++;
}
told_to_quit++;
interrupted++;
}
@@
-1608,6
+1608,7
@@
quitser (int i)
static void
alrmser (int i)
{
static void
alrmser (int i)
{
+ NMH_UNUSED (i);
longjmp (peerenv, DONE);
}
longjmp (peerenv, DONE);
}
@@
-1672,6
+1673,7
@@
pINI (void)
static int
pQRY (char *str, int scansw)
{
static int
pQRY (char *str, int scansw)
{
+ NMH_UNUSED (str);
if (pQRY1 (scansw) == NOTOK || pQRY2 () == NOTOK)
return NOTOK;
if (pQRY1 (scansw) == NOTOK || pQRY2 () == NOTOK)
return NOTOK;