summaryrefslogtreecommitdiffstats
path: root/sys/rpc
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-12-04 02:12:43 +0000
committerru <ru@FreeBSD.org>2005-12-04 02:12:43 +0000
commit522e9c2b7b1ceeb0bc6a2edb3ee62885d8106ac3 (patch)
treef3ce65232b57836f87c8dc38dfcc8fbb95679c5d /sys/rpc
parent7b7fd248389b497235a0e9dcef2aff317880a15b (diff)
downloadFreeBSD-src-522e9c2b7b1ceeb0bc6a2edb3ee62885d8106ac3.zip
FreeBSD-src-522e9c2b7b1ceeb0bc6a2edb3ee62885d8106ac3.tar.gz
Fix -Wundef.
Diffstat (limited to 'sys/rpc')
-rw-r--r--sys/rpc/rpcclnt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/rpc/rpcclnt.c b/sys/rpc/rpcclnt.c
index 698c956..a70a287 100644
--- a/sys/rpc/rpcclnt.c
+++ b/sys/rpc/rpcclnt.c
@@ -409,7 +409,7 @@ rpcclnt_connect(rpc, td)
if (error)
goto bad;
-#if __OpenBSD__
+#ifdef __OpenBSD__
MGET(m, M_TRYWAIT, MT_SONAME);
sin = mtod(m, struct sockaddr_in *);
sin->sin_len = m->m_len = sizeof(struct sockaddr_in);
@@ -428,7 +428,7 @@ rpcclnt_connect(rpc, td)
if (error)
goto bad;
-#if __OpenBSD__
+#ifdef __OpenBSD__
MGET(mopt, M_TRYWAIT, MT_SOOPTS);
mopt->m_len = sizeof(int);
ip = mtod(mopt, int *);
@@ -1388,7 +1388,7 @@ rpcclnt_timer(arg)
struct thread *td = curthread;
#endif
-#if __OpenBSD__
+#ifdef __OpenBSD__
s = splsoftnet();
#else
s = splnet();
OpenPOWER on IntegriCloud