summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/getenv.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2016-03-13 18:34:20 +0000
committerguenther <guenther@openbsd.org>2016-03-13 18:34:20 +0000
commite422429247bd689ad82a15ebdacdfc785b980b1d (patch)
treee55007aaec3fc67c3671cede86e113d93041c114 /lib/libc/stdlib/getenv.c
parentremove an extra space before ^\ help message. (diff)
downloadwireguard-openbsd-e422429247bd689ad82a15ebdacdfc785b980b1d.tar.xz
wireguard-openbsd-e422429247bd689ad82a15ebdacdfc785b980b1d.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 '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;