diff options
author | glebius <glebius@FreeBSD.org> | 2013-04-26 12:50:32 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-04-26 12:50:32 +0000 |
commit | b4bc270e8f6757fa385861750ab22ba0ca4978ed (patch) | |
tree | 073e97431b8851637e702226bc02446cb01b0f4b /sys/netatalk/aarp.c | |
parent | 7eab2144525c38723764e418181b36c7e9cbafad (diff) | |
download | FreeBSD-src-b4bc270e8f6757fa385861750ab22ba0ca4978ed.zip FreeBSD-src-b4bc270e8f6757fa385861750ab22ba0ca4978ed.tar.gz |
Add const qualifier to the dst parameter of the ifnet if_output method.
Diffstat (limited to 'sys/netatalk/aarp.c')
-rw-r--r-- | sys/netatalk/aarp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/netatalk/aarp.c b/sys/netatalk/aarp.c index 4426d57..8d4f76f 100644 --- a/sys/netatalk/aarp.c +++ b/sys/netatalk/aarp.c @@ -147,7 +147,7 @@ aarptimer(void *ignored) * unlocked variant returns a reference that the caller must dispose of. */ struct at_ifaddr * -at_ifawithnet_locked(struct sockaddr_at *sat) +at_ifawithnet_locked(const struct sockaddr_at *sat) { struct at_ifaddr *aa; struct sockaddr_at *sat2; @@ -167,7 +167,7 @@ at_ifawithnet_locked(struct sockaddr_at *sat) } struct at_ifaddr * -at_ifawithnet(struct sockaddr_at *sat) +at_ifawithnet(const struct sockaddr_at *sat) { struct at_ifaddr *aa; @@ -180,7 +180,7 @@ at_ifawithnet(struct sockaddr_at *sat) } static void -aarpwhohas(struct ifnet *ifp, struct sockaddr_at *sat) +aarpwhohas(struct ifnet *ifp, const struct sockaddr_at *sat) { struct mbuf *m; struct ether_header *eh; @@ -267,8 +267,8 @@ aarpwhohas(struct ifnet *ifp, struct sockaddr_at *sat) } int -aarpresolve(struct ifnet *ifp, struct mbuf *m, struct sockaddr_at *destsat, - u_char *desten) +aarpresolve(struct ifnet *ifp, struct mbuf *m, + const struct sockaddr_at *destsat, u_char *desten) { struct at_ifaddr *aa; struct aarptab *aat; @@ -567,7 +567,7 @@ aarptfree(struct aarptab *aat) } struct aarptab * -aarptnew(struct at_addr *addr) +aarptnew(const struct at_addr *addr) { int n; int oldest = -1; |