summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/system.c
diff options
context:
space:
mode:
authorguenther <>2016-03-13 18:34:21 +0000
committerguenther <>2016-03-13 18:34:21 +0000
commit32c7768b61c95094702adc74eaa693e9f28c61a2 (patch)
treeb5c10fdb5262fbf4e26b8f42490d471382d5bd4e /src/lib/libc/stdlib/system.c
parent2bae55188c77df70108a2fe686cff583e08b7ffb (diff)
downloadopenbsd-32c7768b61c95094702adc74eaa693e9f28c61a2.tar.gz
openbsd-32c7768b61c95094702adc74eaa693e9f28c61a2.tar.bz2
openbsd-32c7768b61c95094702adc74eaa693e9f28c61a2.zip
environ and __progname are not declared in a public header; declare them
in libc's hidden/stdlib.h instead of in each .c file that needs one ok deraadt@ gsoares@ mpi@
Diffstat (limited to 'src/lib/libc/stdlib/system.c')
-rw-r--r--src/lib/libc/stdlib/system.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libc/stdlib/system.c b/src/lib/libc/stdlib/system.c
index de32d4328f..fe718276b9 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.11 2015/10/23 04:44:41 guenther Exp $ */ 1/* $OpenBSD: system.c,v 1.12 2016/03/13 18:34:21 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.
@@ -36,8 +36,6 @@
36#include <unistd.h> 36#include <unistd.h>
37#include <paths.h> 37#include <paths.h>
38 38
39extern char **environ;
40
41int 39int
42system(const char *command) 40system(const char *command)
43{ 41{