projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed use of GNU "simply expanded variables" for MAN1, MAN5, MAN8, so
[mmh]
/
uip
/
vmhsbr.c
diff --git
a/uip/vmhsbr.c
b/uip/vmhsbr.c
index
8ef0310
..
8ee1e49
100644
(file)
--- a/
uip/vmhsbr.c
+++ b/
uip/vmhsbr.c
@@
-3,6
+3,10
@@
* vmhsbr.c -- routines to help vmh along
*
* $Id$
* vmhsbr.c -- routines to help vmh along
*
* $Id$
+ *
+ * This code is Copyright (c) 2002, by the authors of nmh. See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information.
*/
/*
*/
/*
@@
-106,7
+110,7
@@
peer2rc (struct record *rc)
if (fp) {
fseek (fp, 0L, SEEK_END);
fprintf (fp, "%d: <--- %s %d: \"%*.*s\"\n", (int) getpid(),
if (fp) {
fseek (fp, 0L, SEEK_END);
fprintf (fp, "%d: <--- %s %d: \"%*.*s\"\n", (int) getpid(),
- types[rc->rc_type], rc->rc_len,
+ types[(unsigned char)rc->rc_type], rc->rc_len,
rc->rc_len, rc->rc_len, rc->rc_data);
fflush (fp);
}
rc->rc_len, rc->rc_len, rc->rc_data);
fflush (fp);
}
@@
-127,7
+131,7
@@
rc2peer (char code, int len, char *data)
if (fp) {
fseek (fp, 0L, SEEK_END);
fprintf (fp, "%d: ---> %s %d: \"%*.*s\"\n", (int) getpid(),
if (fp) {
fseek (fp, 0L, SEEK_END);
fprintf (fp, "%d: ---> %s %d: \"%*.*s\"\n", (int) getpid(),
- types[rc->rc_type], rc->rc_len,
+ types[(unsigned char)rc->rc_type], rc->rc_len,
rc->rc_len, rc->rc_len, data);
fflush (fp);
}
rc->rc_len, rc->rc_len, data);
fflush (fp);
}
@@
-164,11
+168,13
@@
fmt2peer (char code, char *fmt, ...)
int
err2peer (char code, char *what, char *fmt, ...)
{
int
err2peer (char code, char *what, char *fmt, ...)
{
+ int return_value;
va_list ap;
va_start(ap, fmt);
va_list ap;
va_start(ap, fmt);
- verr2peer(code, what, fmt, ap);
+ return_value = verr2peer(code, what, fmt, ap);
va_end(ap);
va_end(ap);
+ return return_value; /* This routine returned garbage before 1999-07-15. */
}
}