summaryrefslogtreecommitdiff
path: root/usr.bin/rpcgen
diff options
context:
space:
mode:
authorMike Pechkin <mpech@cvs.openbsd.org>2002-06-12 06:07:18 +0000
committerMike Pechkin <mpech@cvs.openbsd.org>2002-06-12 06:07:18 +0000
commit2c5359ee4336522c89649a8e017da3fdf87fa8bd (patch)
tree60aa07e4178dd0840349fe830f118d2cb64a1c6c /usr.bin/rpcgen
parentc22dc40df755f025740d14e001bb8599cf4a72c5 (diff)
a real pid_t cleanup.
espie@ ok for make/, deraadt@ one extra eye, millert@ ok
Diffstat (limited to 'usr.bin/rpcgen')
-rw-r--r--usr.bin/rpcgen/rpc_svcout.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/rpcgen/rpc_svcout.c b/usr.bin/rpcgen/rpc_svcout.c
index 81f83a4fc55..1760fadf00e 100644
--- a/usr.bin/rpcgen/rpc_svcout.c
+++ b/usr.bin/rpcgen/rpc_svcout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rpc_svcout.c,v 1.13 2002/06/09 01:28:06 deraadt Exp $ */
+/* $OpenBSD: rpc_svcout.c,v 1.14 2002/06/12 06:07:16 mpech Exp $ */
/* $NetBSD: rpc_svcout.c,v 1.7 1995/06/24 14:59:59 pk Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -793,8 +793,10 @@ write_rpc_svc_fg(infile, sp)
fprintf(fout, "%sint size;\n", sp);
if (tirpcflag)
fprintf(fout, "%sstruct rlimit rl;\n", sp);
- if (inetdflag)
- fprintf(fout, "%sint pid, i;\n\n", sp);
+ if (inetdflag) {
+ fprintf(fout, "%sint i;\n\n", sp);
+ fprintf(fout, "%spid_t pid;\n\n", sp);
+ }
fprintf(fout, "%spid = fork();\n", sp);
fprintf(fout, "%sif (pid < 0) {\n", sp);
fprintf(fout, "%s\tperror(\"cannot fork\");\n", sp);