aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1997-12-28 02:56:43 +0000
committerBrian Somers <brian@FreeBSD.org>1997-12-28 02:56:43 +0000
commit09411a5af379568b71df161155a9557d15c8041e (patch)
tree4f6a2ed3aebb8b8e1b74d40c780303a62a5b214c /usr.sbin
parentc60f92ca711e20e1f7009238dce9392c9cf0794a (diff)
downloadsrc-09411a5af379568b71df161155a9557d15c8041e.tar.gz
src-09411a5af379568b71df161155a9557d15c8041e.zip
Initialize mbuf::pnext.
Complain to LogERROR if we have internal inconsistency (not LogDEBUG).
Notes
Notes: svn path=/head/; revision=32040
Diffstat (limited to 'usr.sbin')
-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 258133dbb82b..0d72e1c64b37 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 cc519c39712a..8c5e9d72ebcc 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);