summaryrefslogtreecommitdiffstats
path: root/usr.bin/rpcgen
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2011-04-06 11:36:23 +0000
committermiod <miod@openbsd.org>2011-04-06 11:36:23 +0000
commit691235adb977a6a7730c100aa9b733644d50c443 (patch)
tree55fba51a8d239644006a1329a3fb5146e9974cc9 /usr.bin/rpcgen
parentLocal variables storing integer values and printed with %d should be (diff)
downloadwireguard-openbsd-691235adb977a6a7730c100aa9b733644d50c443.tar.xz
wireguard-openbsd-691235adb977a6a7730c100aa9b733644d50c443.zip
Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'
for chars.
Diffstat (limited to 'usr.bin/rpcgen')
-rw-r--r--usr.bin/rpcgen/rpc_hout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rpcgen/rpc_hout.c b/usr.bin/rpcgen/rpc_hout.c
index db67323e3c6..2a2c0b5e674 100644
--- a/usr.bin/rpcgen/rpc_hout.c
+++ b/usr.bin/rpcgen/rpc_hout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rpc_hout.c,v 1.19 2010/09/01 14:43:34 millert Exp $ */
+/* $OpenBSD: rpc_hout.c,v 1.20 2011/04/06 11:36:26 miod Exp $ */
/* $NetBSD: rpc_hout.c,v 1.4 1995/06/11 21:49:55 pk Exp $ */
/*
@@ -163,7 +163,7 @@ pargdef(def)
}
fprintf(fout, "};\n");
fprintf(fout, "typedef struct %s %s;\n", name, name);
- pxdrfuncdecl(name, NULL);
+ pxdrfuncdecl(name, 0);
fprintf(fout, "\n");
}
}