diff options
author | bz <bz@FreeBSD.org> | 2016-03-24 11:40:10 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2016-03-24 11:40:10 +0000 |
commit | a460d0156798a8e88ab4f60947b9180e7a9c13b5 (patch) | |
tree | fec1608bfaa57673715944537ac1a3d862bed180 /sys/netinet | |
parent | 0c487173631bdfea097ed52cd60ef3ff32f0323e (diff) | |
download | FreeBSD-src-a460d0156798a8e88ab4f60947b9180e7a9c13b5.zip FreeBSD-src-a460d0156798a8e88ab4f60947b9180e7a9c13b5.tar.gz |
Fix compile errors after r297225:
- properly V_irtualise variable access unbreaking VIMAGE kernels.
- remove the volatile from the function return type to make architecture
using gcc happy [-Wreturn-type]
"type qualifiers ignored on function return type"
I am not entirely happy with this solution putting the u_int there
but it will do for now.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/tcp_subr.c | 2 | ||||
-rw-r--r-- | sys/netinet/udp_usrreq.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 877f7f8..26b25ed 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -1932,7 +1932,7 @@ tcp_ctlinput(int cmd, struct sockaddr *sa, void *vip) notify = tcp_drop_syn_sent; else if (PRC_IS_REDIRECT(cmd)) { /* signal EHOSTDOWN, as it flushes the cached route */ - in_pcbnotifyall(&tcbinfo, faddr, EHOSTDOWN, notify); + in_pcbnotifyall(&V_tcbinfo, faddr, EHOSTDOWN, notify); return; } /* diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index ecd1e0c..56aa56f 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -768,7 +768,7 @@ udp_common_ctlinput(int cmd, struct sockaddr *sa, void *vip, if (PRC_IS_REDIRECT(cmd)) { /* signal EHOSTDOWN, as it flushes the cached route */ - in_pcbnotifyall(&udbinfo, faddr, EHOSTDOWN, udp_notify); + in_pcbnotifyall(&V_udbinfo, faddr, EHOSTDOWN, udp_notify); return; } |