summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguenther <>2015-09-14 08:51:07 +0000
committerguenther <>2015-09-14 08:51:07 +0000
commitd2986c5b1bcdeaa2c77d34466be3b2d753d9e3d4 (patch)
treefe3615a5e93920104c2322e8b0330ae8b3403fdf
parent4b86b5390157b27ef6f13cfffac669a4ca39ca45 (diff)
downloadopenbsd-d2986c5b1bcdeaa2c77d34466be3b2d753d9e3d4.tar.gz
openbsd-d2986c5b1bcdeaa2c77d34466be3b2d753d9e3d4.tar.bz2
openbsd-d2986c5b1bcdeaa2c77d34466be3b2d753d9e3d4.zip
Remove cast of int* to int*
-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);