From 32c7768b61c95094702adc74eaa693e9f28c61a2 Mon Sep 17 00:00:00 2001 From: guenther <> Date: Sun, 13 Mar 2016 18:34:21 +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@ --- src/lib/libc/stdlib/setenv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lib/libc/stdlib/setenv.c') diff --git a/src/lib/libc/stdlib/setenv.c b/src/lib/libc/stdlib/setenv.c index e55a1feb6f..1182abdaa3 100644 --- a/src/lib/libc/stdlib/setenv.c +++ b/src/lib/libc/stdlib/setenv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: setenv.c,v 1.16 2015/09/13 08:31:47 guenther Exp $ */ +/* $OpenBSD: setenv.c,v 1.17 2016/03/13 18:34:21 guenther Exp $ */ /* * Copyright (c) 1987 Regents of the University of California. * All rights reserved. @@ -32,7 +32,6 @@ #include #include -extern char **environ; static char **lastenv; /* last value of environ */ /* -- cgit v1.2.3-55-g6feb