diff options
author | harti <harti@FreeBSD.org> | 2003-07-24 09:13:03 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2003-07-24 09:13:03 +0000 |
commit | 7701c947dbbce3c1585679703700213bd686b5c9 (patch) | |
tree | 9d69e257f73b320140b9228f2b1bbfe55193c667 /sys/netatm/atm_subr.c | |
parent | 28420f22f746f5c9bcaa97310e39e206c789b1ef (diff) | |
download | FreeBSD-src-7701c947dbbce3c1585679703700213bd686b5c9.zip FreeBSD-src-7701c947dbbce3c1585679703700213bd686b5c9.tar.gz |
Constify the arguments to several pdu_print functions.
Diffstat (limited to 'sys/netatm/atm_subr.c')
-rw-r--r-- | sys/netatm/atm_subr.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/netatm/atm_subr.c b/sys/netatm/atm_subr.c index 4e72a03..0a6b55b 100644 --- a/sys/netatm/atm_subr.c +++ b/sys/netatm/atm_subr.c @@ -575,23 +575,21 @@ atm_intr(struct mbuf *m) * */ void -atm_pdu_print(m, msg) - KBuffer *m; - char *msg; +atm_pdu_print(const KBuffer *m, const char *msg) { - caddr_t cp; + const u_char *cp; int i; char c = ' '; printf("%s:", msg); while (m) { - KB_DATASTART(m, cp, caddr_t); + KB_DATASTART(m, cp, const u_char *); printf("%cbfr=%p data=%p len=%d: ", c, m, cp, KB_LEN(m)); c = '\t'; if (atm_print_data) { for (i = 0; i < KB_LEN(m); i++) { - printf("%2x ", (u_char)*cp++); + printf("%2x ", *cp++); } printf("<end_bfr>\n"); } else { @@ -600,4 +598,3 @@ atm_pdu_print(m, msg) m = KB_NEXT(m); } } - |