diff options
author | brian <brian@FreeBSD.org> | 1998-08-21 18:10:15 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-08-21 18:10:15 +0000 |
commit | e33077d21e0550e4887d7fa99f119879173013b1 (patch) | |
tree | c341efe7472b9678c995e827868858b9979aa5d6 /usr.sbin/ppp/log.c | |
parent | 016635b3542cbeba3d19d3dacda50ee7ebfcc1a9 (diff) | |
download | FreeBSD-src-e33077d21e0550e4887d7fa99f119879173013b1.zip FreeBSD-src-e33077d21e0550e4887d7fa99f119879173013b1.tar.gz |
Consolidate the two malloc()s that are done when allocating
an mbuf.
Diffstat (limited to 'usr.sbin/ppp/log.c')
-rw-r--r-- | usr.sbin/ppp/log.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 <sys/types.h> @@ -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; |