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);
}
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);
}
int
err2peer (char code, char *what, char *fmt, ...)
{
+ int return_value;
va_list ap;
va_start(ap, fmt);
- verr2peer(code, what, fmt, ap);
+ return_value = verr2peer(code, what, fmt, ap);
va_end(ap);
+ return return_value; /* This routine returned garbage before 1999-07-15. */
}