summaryrefslogtreecommitdiff
path: root/sys/netinet/sctp_lock_bsd.h
diff options
context:
space:
mode:
authorRandall Stewart <rrs@FreeBSD.org>2008-05-20 13:47:46 +0000
committerRandall Stewart <rrs@FreeBSD.org>2008-05-20 13:47:46 +0000
commitc54a18d26b6afde430af32090857d70da0983532 (patch)
tree2eb09e824f0a51e8694f455f2aa95ba0da7b95d8 /sys/netinet/sctp_lock_bsd.h
parent7840976da5073f560b12aaaf595dc1941ae65773 (diff)
downloadsrc-test2-c54a18d26b6afde430af32090857d70da0983532.tar.gz
src-test2-c54a18d26b6afde430af32090857d70da0983532.zip
Notes
Diffstat (limited to 'sys/netinet/sctp_lock_bsd.h')
-rw-r--r--sys/netinet/sctp_lock_bsd.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/sctp_lock_bsd.h b/sys/netinet/sctp_lock_bsd.h
index eeaca5d2efa0..95f3ed45b6bc 100644
--- a/sys/netinet/sctp_lock_bsd.h
+++ b/sys/netinet/sctp_lock_bsd.h
@@ -83,10 +83,10 @@ extern int sctp_logoff_stuff;
#define SCTP_STATLOG_DESTROY()
#define SCTP_INP_INFO_LOCK_DESTROY() do { \
- if(rw_wowned(sctppcbinfo.ipi_ep_mtx)) { \
+ if(rw_wowned(&sctppcbinfo.ipi_ep_mtx)) { \
rw_wunlock(&sctppcbinfo.ipi_ep_mtx); \
} \
- rw_destroy(sctppcbinfo.ipi_ep_mtx); \
+ rw_destroy(&sctppcbinfo.ipi_ep_mtx); \
} while (0)
#define SCTP_INP_INFO_LOCK_INIT() \
@@ -111,10 +111,10 @@ extern int sctp_logoff_stuff;
rw_init(&sctppcbinfo.ipi_addr_mtx, "sctp-addr")
#define SCTP_IPI_ADDR_DESTROY() do { \
- if(rw_wowned(sctppcbinfo.ipi_addr_mtx)) { \
+ if(rw_wowned(&sctppcbinfo.ipi_addr_mtx)) { \
rw_wunlock(&sctppcbinfo.ipi_addr_mtx); \
} \
- rw_destroy(&sctppcbinfo.ipi_addr_mtx) \
+ rw_destroy(&sctppcbinfo.ipi_addr_mtx); \
} while (0)