- Parenthesize &

- Change %r -> %: as for recursive printf's
This commit is contained in:
christos 1996-03-30 21:54:33 +00:00
parent dd7163922a
commit 09ed6483fd
1 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pk_subr.c,v 1.11 1996/02/13 22:05:34 christos Exp $ */
/* $NetBSD: pk_subr.c,v 1.12 1996/03/30 21:54:33 christos Exp $ */
/*
* Copyright (c) University of British Columbia, 1984
@ -1152,7 +1152,6 @@ pk_message(lcn, xcp, fmt, va_alist)
#endif
{
va_list ap;
static const char *rec = "%r\n";
if (lcn)
if (!PQEMPTY)
@ -1165,7 +1164,7 @@ pk_message(lcn, xcp, fmt, va_alist)
printf("X.25: ");
va_start(ap, fmt);
printf(rec, fmt, ap);
printf("%:\n", fmt, ap);
va_end(ap);
}
@ -1183,7 +1182,7 @@ pk_fragment(lcp, m0, qbit, mbit, wait)
if (m == 0)
return 0;
if (m->m_flags & M_PKTHDR == 0)
if ((m->m_flags & M_PKTHDR) == 0)
panic("pk_fragment");
totlen = m->m_pkthdr.len;
m->m_act = 0;