summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libc/stdlib/system.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/system.c b/src/lib/libc/stdlib/system.c
index 2a50ec7490..3ad0bcde41 100644
--- a/src/lib/libc/stdlib/system.c
+++ b/src/lib/libc/stdlib/system.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: system.c,v 1.9 2015/09/13 08:31:48 guenther Exp $ */ 1/* $OpenBSD: system.c,v 1.10 2015/09/14 08:51:07 guenther Exp $ */
2/* 2/*
3 * Copyright (c) 1988 The Regents of the University of California. 3 * Copyright (c) 1988 The Regents of the University of California.
4 * All rights reserved. 4 * All rights reserved.
@@ -66,7 +66,7 @@ system(const char *command)
66 66
67 intsave = signal(SIGINT, SIG_IGN); 67 intsave = signal(SIGINT, SIG_IGN);
68 quitsave = signal(SIGQUIT, SIG_IGN); 68 quitsave = signal(SIGQUIT, SIG_IGN);
69 pid = waitpid(pid, (int *)&pstat, 0); 69 pid = waitpid(pid, &pstat, 0);
70 sigprocmask(SIG_SETMASK, &omask, NULL); 70 sigprocmask(SIG_SETMASK, &omask, NULL);
71 (void)signal(SIGINT, intsave); 71 (void)signal(SIGINT, intsave);
72 (void)signal(SIGQUIT, quitsave); 72 (void)signal(SIGQUIT, quitsave);