summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/system.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2002-05-26 09:24:35 +0000
committerderaadt <deraadt@openbsd.org>2002-05-26 09:24:35 +0000
commit13ee8a54b862cc0dfd91f39c641da06af64cc2b2 (patch)
treecc15bdee8a5aa91ccbc87bc82fc9585d9342b76d /lib/libc/stdlib/system.c
parent- CPU_MAXID and CPU_CHIPSET were swapped in cpu.h (diff)
downloadwireguard-openbsd-13ee8a54b862cc0dfd91f39c641da06af64cc2b2.tar.xz
wireguard-openbsd-13ee8a54b862cc0dfd91f39c641da06af64cc2b2.zip
pid_t cleanup
Diffstat (limited to 'lib/libc/stdlib/system.c')
-rw-r--r--lib/libc/stdlib/system.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdlib/system.c b/lib/libc/stdlib/system.c
index dadf3fe8419..636a9ebdffa 100644
--- a/lib/libc/stdlib/system.c
+++ b/lib/libc/stdlib/system.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: system.c,v 1.4 2001/09/04 23:35:58 millert Exp $";
+static char *rcsid = "$OpenBSD: system.c,v 1.5 2002/05/26 09:29:02 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -62,7 +62,7 @@ system(command)
sigemptyset(&mask);
sigaddset(&mask, SIGCHLD);
sigprocmask(SIG_BLOCK, &mask, &omask);
- switch(pid = vfork()) {
+ switch (pid = vfork()) {
case -1: /* error */
sigprocmask(SIG_SETMASK, &omask, NULL);
return(-1);
@@ -78,5 +78,5 @@ system(command)
sigprocmask(SIG_SETMASK, &omask, NULL);
(void)signal(SIGINT, intsave);
(void)signal(SIGQUIT, quitsave);
- return(pid == -1 ? -1 : pstat);
+ return (pid == -1 ? -1 : pstat);
}