From 8a59d71f31abaa642f02dbeac92ab61c3cfcb3e1 Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Sun, 13 Mar 2016 18:34:22 +0000 Subject: 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@ --- lib/libc/stdlib/getenv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/libc/stdlib/getenv.c') 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; -- cgit v1.2.3