summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/getenv.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-03-13 18:34:22 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-03-13 18:34:22 +0000
commit8a59d71f31abaa642f02dbeac92ab61c3cfcb3e1 (patch)
tree0579de35b795570fbe1c5a9065453eb9f30f3a66 /lib/libc/stdlib/getenv.c
parente028b5ad03d3421ea9ae9ef0d16f68d503f04315 (diff)
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 'lib/libc/stdlib/getenv.c')
-rw-r--r--lib/libc/stdlib/getenv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/stdlib/getenv.c b/lib/libc/stdlib/getenv.c
index 6ddad9225a3..054497b4320 100644
--- a/lib/libc/stdlib/getenv.c
+++ b/lib/libc/stdlib/getenv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getenv.c,v 1.11 2015/09/13 08:31:47 guenther Exp $ */
+/* $OpenBSD: getenv.c,v 1.12 2016/03/13 18:34:21 guenther Exp $ */
/*
* Copyright (c) 1987, 1993
* The Regents of the University of California. All rights reserved.
@@ -45,7 +45,6 @@
char *
__findenv(const char *name, int len, int *offset)
{
- extern char **environ;
int i;
const char *np;
char **p, *cp;