diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-08-11 21:24:21 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-08-11 21:24:21 +0000 |
commit | bda0e09dc4819e6f0da56bc659a507a53ce2c49e (patch) | |
tree | b8a35df42b1a236d2f93a31c84fab1deb17e8a67 /sys/net/rtsock.c | |
parent | 119ca99b6e7df0e54659d9e9b1b7f7960196ac58 (diff) |
Remove NET_LOCK()'s argument.
Tested by Hrvoje Popovski, ok bluhm@
Diffstat (limited to 'sys/net/rtsock.c')
-rw-r--r-- | sys/net/rtsock.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index efcc5012d39..94aa5a5fbc8 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsock.c,v 1.247 2017/08/10 13:00:30 mpi Exp $ */ +/* $OpenBSD: rtsock.c,v 1.248 2017/08/11 21:24:19 mpi Exp $ */ /* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */ /* @@ -744,9 +744,8 @@ rtm_output(struct rt_msghdr *rtm, struct rtentry **prt, struct sockaddr_mpls *psa_mpls; #endif int plen, newgate = 0, error = 0; - int s; - NET_LOCK(s); + NET_LOCK(); switch (rtm->rtm_type) { case RTM_ADD: if (info->rti_info[RTAX_GATEWAY] == NULL) { @@ -1023,7 +1022,7 @@ change: error = ESRCH; break; } - NET_UNLOCK(s); + NET_UNLOCK(); *prt = rt; return (error); |