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/uni | |
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/uni')
-rw-r--r-- | sys/netatm/uni/sscf_uni.c | 6 | ||||
-rw-r--r-- | sys/netatm/uni/sscf_uni_var.h | 3 | ||||
-rw-r--r-- | sys/netatm/uni/sscop_pdu.c | 6 | ||||
-rw-r--r-- | sys/netatm/uni/sscop_var.h | 3 | ||||
-rw-r--r-- | sys/netatm/uni/uniarp_input.c | 6 | ||||
-rw-r--r-- | sys/netatm/uni/uniip_var.h | 3 |
6 files changed, 9 insertions, 18 deletions
diff --git a/sys/netatm/uni/sscf_uni.c b/sys/netatm/uni/sscf_uni.c index 47ed863..8911ee9 100644 --- a/sys/netatm/uni/sscf_uni.c +++ b/sys/netatm/uni/sscf_uni.c @@ -305,10 +305,7 @@ sscf_uni_abort(uvp, msg) * */ void -sscf_uni_pdu_print(uvp, m, msg) - struct univcc *uvp; - KBuffer *m; - char *msg; +sscf_uni_pdu_print(const struct univcc *uvp, const KBuffer *m, const char *msg) { char buf[128]; struct vccb *vcp; @@ -318,4 +315,3 @@ sscf_uni_pdu_print(uvp, m, msg) msg, vcp->vc_vpi, vcp->vc_vci); atm_pdu_print(m, buf); } - diff --git a/sys/netatm/uni/sscf_uni_var.h b/sys/netatm/uni/sscf_uni_var.h index 4eb938a..934bdaa 100644 --- a/sys/netatm/uni/sscf_uni_var.h +++ b/sys/netatm/uni/sscf_uni_var.h @@ -95,7 +95,8 @@ struct univcc { int sscf_uni_start(void); int sscf_uni_stop(void); void sscf_uni_abort(struct univcc *, char *); -void sscf_uni_pdu_print(struct univcc *, KBuffer *, char *); +void sscf_uni_pdu_print(const struct univcc *, + const KBuffer *, const char *); /* sscf_uni_lower.c */ void sscf_uni_lower(int, void *, intptr_t, intptr_t); diff --git a/sys/netatm/uni/sscop_pdu.c b/sys/netatm/uni/sscop_pdu.c index e666065..eeed1a0 100644 --- a/sys/netatm/uni/sscop_pdu.c +++ b/sys/netatm/uni/sscop_pdu.c @@ -1232,10 +1232,7 @@ sscop_send_ud(sop, m) * */ void -sscop_pdu_print(sop, m, msg) - struct sscop *sop; - KBuffer *m; - char *msg; +sscop_pdu_print(const struct sscop *sop, const KBuffer *m, const char *msg) { char buf[128]; struct vccb *vcp; @@ -1245,4 +1242,3 @@ sscop_pdu_print(sop, m, msg) "sscop %s: vcc=(%d,%d)\n", msg, vcp->vc_vpi, vcp->vc_vci); atm_pdu_print(m, buf); } - diff --git a/sys/netatm/uni/sscop_var.h b/sys/netatm/uni/sscop_var.h index e4ddc42..9ba9ca6 100644 --- a/sys/netatm/uni/sscop_var.h +++ b/sys/netatm/uni/sscop_var.h @@ -168,7 +168,8 @@ int sscop_send_poll(struct sscop *); int sscop_send_stat(struct sscop *, sscop_seq); int sscop_send_ustat(struct sscop *, sscop_seq); int sscop_send_ud(struct sscop *, KBuffer *); -void sscop_pdu_print(struct sscop *, KBuffer *, char *); +void sscop_pdu_print(const struct sscop *, + const KBuffer *, const char *); /* sscop_sigaa.c */ void sscop_estreq_idle(struct sscop *, intptr_t, intptr_t); diff --git a/sys/netatm/uni/uniarp_input.c b/sys/netatm/uni/uniarp_input.c index 2beda86..b729c63 100644 --- a/sys/netatm/uni/uniarp_input.c +++ b/sys/netatm/uni/uniarp_input.c @@ -852,10 +852,7 @@ drop: * */ void -uniarp_pdu_print(ivp, m, msg) - struct ipvcc *ivp; - KBuffer *m; - char *msg; +uniarp_pdu_print(const struct ipvcc *ivp, const KBuffer *m, const char *msg) { char buf[128]; struct vccb *vcp; @@ -865,4 +862,3 @@ uniarp_pdu_print(ivp, m, msg) "uniarp %s: vcc=(%d,%d)\n", msg, vcp->vc_vpi, vcp->vc_vci); atm_pdu_print(m, buf); } - diff --git a/sys/netatm/uni/uniip_var.h b/sys/netatm/uni/uniip_var.h index 768790a..7d7ef3d 100644 --- a/sys/netatm/uni/uniip_var.h +++ b/sys/netatm/uni/uniip_var.h @@ -281,7 +281,8 @@ int uniarp_validate_ip(struct uniip *, struct in_addr *, u_int); /* uniarp_input.c */ void uniarp_cpcs_data(void *, KBuffer *); -void uniarp_pdu_print(struct ipvcc *, KBuffer *, char *); +void uniarp_pdu_print(const struct ipvcc *, + const KBuffer *, const char *); /* uniarp_output.c */ int uniarp_arp_req(struct uniip *, struct in_addr *); |