diff options
author | brian <brian@cvs.openbsd.org> | 1997-12-28 02:57:13 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1997-12-28 02:57:13 +0000 |
commit | 9da2d112cd1a5a27c39f8ef232b793888e9f9e83 (patch) | |
tree | e2466625d03a755ce184b9c0d3780d7615e54a64 | |
parent | 1114238242b38f9b4e02b087a3eff40b89ff9044 (diff) |
Initialize mbuf::pnext.
Complain to LogERROR if we have internal inconsistency (not LogDEBUG).
-rw-r--r-- | usr.sbin/ppp/mbuf.c | 3 | ||||
-rw-r--r-- | usr.sbin/ppp/modem.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ppp/mbuf.c b/usr.sbin/ppp/mbuf.c index af0066f97c7..c7d8a68b993 100644 --- a/usr.sbin/ppp/mbuf.c +++ b/usr.sbin/ppp/mbuf.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: mbuf.c,v 1.1 1997/11/23 20:27:34 brian Exp $ + * $Id: mbuf.c,v 1.2 1997/12/28 02:57:12 brian Exp $ * */ #include <sys/param.h> @@ -79,6 +79,7 @@ mballoc(int cnt, int type) bp->base = p; bp->size = bp->cnt = cnt; bp->type = type; + bp->pnext = NULL; return (bp); } diff --git a/usr.sbin/ppp/modem.c b/usr.sbin/ppp/modem.c index a763f22316e..ada306d851a 100644 --- a/usr.sbin/ppp/modem.c +++ b/usr.sbin/ppp/modem.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: modem.c,v 1.5 1997/12/24 09:30:42 brian Exp $ + * $Id: modem.c,v 1.6 1997/12/28 02:57:12 brian Exp $ * * TODO: */ @@ -106,7 +106,7 @@ Dequeue(struct mqueue * queue) if (queue->top == NULL) { queue->last = queue->top; if (queue->qlen) - LogPrintf(LogDEBUG, "Dequeue: Not zero (%d)!!!\n", queue->qlen); + LogPrintf(LogERROR, "Dequeue: Not zero (%d)!!!\n", queue->qlen); } } return (bp); |