summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-12-28 02:56:43 +0000
committerbrian <brian@FreeBSD.org>1997-12-28 02:56:43 +0000
commit82e6e7f1f010d91452fe9563cfc2045d176f225a (patch)
tree5aa7bbc19da0e91b0a2c062380bc2873e287c530
parent2d964343409ebf259f7e998d52ce2eca7495c1a7 (diff)
downloadFreeBSD-src-82e6e7f1f010d91452fe9563cfc2045d176f225a.zip
FreeBSD-src-82e6e7f1f010d91452fe9563cfc2045d176f225a.tar.gz
Initialize mbuf::pnext.
Complain to LogERROR if we have internal inconsistency (not LogDEBUG).
-rw-r--r--usr.sbin/ppp/mbuf.c3
-rw-r--r--usr.sbin/ppp/modem.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ppp/mbuf.c b/usr.sbin/ppp/mbuf.c
index 258133d..0d72e1c 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.10 1997/10/26 01:03:16 brian Exp $
+ * $Id: mbuf.c,v 1.11 1997/11/22 03:37:40 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 cc519c3..8c5e9d7 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.70 1997/12/23 22:38:55 brian Exp $
+ * $Id: modem.c,v 1.71 1997/12/24 09:29:08 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);
OpenPOWER on IntegriCloud