From e33077d21e0550e4887d7fa99f119879173013b1 Mon Sep 17 00:00:00 2001 From: brian Date: Fri, 21 Aug 1998 18:10:15 +0000 Subject: Consolidate the two malloc()s that are done when allocating an mbuf. --- usr.sbin/ppp/log.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.sbin/ppp/log.c') diff --git a/usr.sbin/ppp/log.c b/usr.sbin/ppp/log.c index 80452af..90cedb8 100644 --- a/usr.sbin/ppp/log.c +++ b/usr.sbin/ppp/log.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: log.c,v 1.33 1998/08/07 18:42:49 brian Exp $ + * $Id: log.c,v 1.34 1998/08/09 15:34:11 brian Exp $ */ #include @@ -324,12 +324,12 @@ log_Printf(int lev, const char *fmt,...) } void -log_DumpBp(int lev, const char *hdr, const struct mbuf * bp) +log_DumpBp(int lev, const char *hdr, const struct mbuf *bp) { if (log_IsKept(lev)) { char buf[50]; char *b; - u_char *ptr; + const u_char *ptr; int f; if (hdr && *hdr) @@ -338,7 +338,7 @@ log_DumpBp(int lev, const char *hdr, const struct mbuf * bp) b = buf; do { f = bp->cnt; - ptr = MBUF_CTOP(bp); + ptr = CONST_MBUF_CTOP(bp); while (f--) { sprintf(b, " %02x", (int) *ptr++); b += 3; -- cgit v1.1