summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_pipe.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1999-06-07 01:38:44 +0000
committerderaadt <deraadt@openbsd.org>1999-06-07 01:38:44 +0000
commit514de928037c7e985d8890d48b9232e6bd32b4d5 (patch)
treeb4c7671c1f884b7767f4cd8f0b123cb85a68a11d /sys/kern/sys_pipe.c
parentmove CC, CCX, and COPTS forward; wd@ics.nara-wu.ac.jp (diff)
downloadwireguard-openbsd-514de928037c7e985d8890d48b9232e6bd32b4d5.tar.xz
wireguard-openbsd-514de928037c7e985d8890d48b9232e6bd32b4d5.zip
store NULL in fd_ofiles
Diffstat (limited to 'sys/kern/sys_pipe.c')
-rw-r--r--sys/kern/sys_pipe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index 202046283de..eeb716bf98c 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_pipe.c,v 1.10 1999/02/26 05:12:18 art Exp $ */
+/* $OpenBSD: sys_pipe.c,v 1.11 1999/06/07 01:38:44 deraadt Exp $ */
/*
* Copyright (c) 1996 John S. Dyson
@@ -156,7 +156,7 @@ int
#if defined(__FreeBSD__)
pipe(p, uap, retval)
#else /* (__NetBSD__) || (__OpenBSD__) */
-sys_pipe(p, v, retval)
+sys_opipe(p, v, retval)
#endif
struct proc *p;
void *v;
@@ -201,7 +201,7 @@ sys_pipe(p, v, retval)
return (0);
free3:
ffree(rf);
- fdp->fd_ofiles[retval[0]] = 0;
+ fdp->fd_ofiles[retval[0]] = NULL;
free2:
(void)pipeclose(wpipe);
(void)pipeclose(rpipe);