summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/system.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-09-14 08:51:07 +0000
committerguenther <guenther@openbsd.org>2015-09-14 08:51:07 +0000
commit07793409e3ab9593d3fb7c1453d4af9aef596fb4 (patch)
tree5465a6ad6b5adf53158e58938cc915d3c85ded89 /lib/libc/stdlib/system.c
parentinit a variable to avoid spurious failure (diff)
downloadwireguard-openbsd-07793409e3ab9593d3fb7c1453d4af9aef596fb4.tar.xz
wireguard-openbsd-07793409e3ab9593d3fb7c1453d4af9aef596fb4.zip
Remove cast of int* to int*
Diffstat (limited to 'lib/libc/stdlib/system.c')
-rw-r--r--lib/libc/stdlib/system.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdlib/system.c b/lib/libc/stdlib/system.c
index 2a50ec74900..3ad0bcde413 100644
--- a/lib/libc/stdlib/system.c
+++ b/lib/libc/stdlib/system.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: system.c,v 1.9 2015/09/13 08:31:48 guenther Exp $ */
+/* $OpenBSD: system.c,v 1.10 2015/09/14 08:51:07 guenther Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
* All rights reserved.
@@ -66,7 +66,7 @@ system(const char *command)
intsave = signal(SIGINT, SIG_IGN);
quitsave = signal(SIGQUIT, SIG_IGN);
- pid = waitpid(pid, (int *)&pstat, 0);
+ pid = waitpid(pid, &pstat, 0);
sigprocmask(SIG_SETMASK, &omask, NULL);
(void)signal(SIGINT, intsave);
(void)signal(SIGQUIT, quitsave);