summaryrefslogtreecommitdiff
path: root/sys/net/if_ppp.c
diff options
context:
space:
mode:
authorDavid Hill <dhill@cvs.openbsd.org>2011-07-04 20:40:59 +0000
committerDavid Hill <dhill@cvs.openbsd.org>2011-07-04 20:40:59 +0000
commit9f45a0a1a078f5cb48dea38b4be6809ee26986bd (patch)
treea0a7b3e1af6f705e6960b82c689ae04734edd951 /sys/net/if_ppp.c
parentdcbf20f66fb414a09cad90c98f477ca3881f1bb8 (diff)
use mtod.
no change in binary "Sure" claudio@
Diffstat (limited to 'sys/net/if_ppp.c')
-rw-r--r--sys/net/if_ppp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c
index 38aec598592..d45ea897148 100644
--- a/sys/net/if_ppp.c
+++ b/sys/net/if_ppp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ppp.c,v 1.58 2010/05/02 22:34:31 stsp Exp $ */
+/* $OpenBSD: if_ppp.c,v 1.59 2011/07/04 20:40:58 dhill Exp $ */
/* $NetBSD: if_ppp.c,v 1.39 1997/05/17 21:11:59 christos Exp $ */
/*
@@ -1584,7 +1584,7 @@ pppdumpm(m0)
for (m = m0; m; m = m->m_next) {
int l = m->m_len;
- u_char *rptr = (u_char *)m->m_data;
+ u_char *rptr = mtod(m, u_char *);
while (l--) {
if (bp > buf + sizeof(buf) - 4)