summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2005-01-08 19:47:39 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2005-01-08 19:47:39 +0000
commit75b95093636e6b2e362f4fa733b77ca0848f1d23 (patch)
treefe84cabb8be7ae02f1f06f7fcbcb2977f8917850
parenta68414b3f6b84222adba4e8fb7a71d768a906252 (diff)
Oops. Too much 'KNF'. We don't use NULL_xdrproc_t, but someone might
use it in a vararg function call that needs the type info. Pointed out by otto@.
-rw-r--r--include/rpc/xdr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h
index f61fcd950df..cf21c1dc22f 100644
--- a/include/rpc/xdr.h
+++ b/include/rpc/xdr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: xdr.h,v 1.8 2005/01/08 19:17:39 krw Exp $ */
+/* $OpenBSD: xdr.h,v 1.9 2005/01/08 19:47:38 krw Exp $ */
/* $NetBSD: xdr.h,v 1.7 1995/04/29 05:28:06 cgd Exp $ */
/*
@@ -198,7 +198,7 @@ typedef bool_t (*xdrproc_t)(/* XDR *, void *, unsigned int */);
* no match, then a default routine may be called.
* If there is no match and no default routine it is an error.
*/
-#define NULL_xdrproc_t NULL
+#define NULL_xdrproc_t ((xdrproc_t)0)
struct xdr_discrim {
int value;
xdrproc_t proc;