diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-05-31 19:17:21 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-05-31 19:17:21 +0000 |
commit | 2353e7443f1dfd8a562717064d5f7f64b1cafd09 (patch) | |
tree | 8b1f33328d1ce5d6bb668f4b841d96ae5a9eb596 /sys | |
parent | 99f18ca71bc3353318cfb32557c693319d8ddfcc (diff) |
Remove some #ifdef / #define maze that is not needed at all.
OK deraadt@ miod@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netnatm/natm.c | 4 | ||||
-rw-r--r-- | sys/netnatm/natm.h | 16 |
2 files changed, 3 insertions, 17 deletions
diff --git a/sys/netnatm/natm.c b/sys/netnatm/natm.c index 3cc75e67650..2b1b77a1b32 100644 --- a/sys/netnatm/natm.c +++ b/sys/netnatm/natm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: natm.c,v 1.10 2008/05/27 19:57:45 thib Exp $ */ +/* $OpenBSD: natm.c,v 1.11 2009/05/31 19:17:20 claudio Exp $ */ /* * @@ -79,7 +79,7 @@ int natm_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam, struct ifnet *ifp; int proto = so->so_proto->pr_protocol; - s = SPLSOFTNET(); + s = splsoftnet(); npcb = (struct natmpcb *) so->so_pcb; diff --git a/sys/netnatm/natm.h b/sys/netnatm/natm.h index e0fc8388bf6..ee92b713575 100644 --- a/sys/netnatm/natm.h +++ b/sys/netnatm/natm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: natm.h,v 1.8 2009/01/28 15:12:03 claudio Exp $ */ +/* $OpenBSD: natm.h,v 1.9 2009/05/31 19:17:20 claudio Exp $ */ /* * @@ -57,20 +57,6 @@ struct sockaddr_natm { }; -#if defined(__FreeBSD__) && defined(KERNEL) - -#ifndef _KERNEL -#define _KERNEL -#endif - -#define SPLSOFTNET() splnet() - -#elif defined(__NetBSD__) || defined(__OpenBSD__) - -#define SPLSOFTNET() splsoftnet() - -#endif - #ifdef _KERNEL /* |