summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libc/stdlib/getenv.c3
-rw-r--r--src/lib/libc/stdlib/malloc.c4
-rw-r--r--src/lib/libc/stdlib/setenv.c3
-rw-r--r--src/lib/libc/stdlib/system.c4
4 files changed, 4 insertions, 10 deletions
diff --git a/src/lib/libc/stdlib/getenv.c b/src/lib/libc/stdlib/getenv.c
index 6ddad9225a..054497b432 100644
--- a/src/lib/libc/stdlib/getenv.c
+++ b/src/lib/libc/stdlib/getenv.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: getenv.c,v 1.11 2015/09/13 08:31:47 guenther Exp $ */ 1/* $OpenBSD: getenv.c,v 1.12 2016/03/13 18:34:21 guenther Exp $ */
2/* 2/*
3 * Copyright (c) 1987, 1993 3 * Copyright (c) 1987, 1993
4 * The Regents of the University of California. All rights reserved. 4 * The Regents of the University of California. All rights reserved.
@@ -45,7 +45,6 @@
45char * 45char *
46__findenv(const char *name, int len, int *offset) 46__findenv(const char *name, int len, int *offset)
47{ 47{
48 extern char **environ;
49 int i; 48 int i;
50 const char *np; 49 const char *np;
51 char **p, *cp; 50 char **p, *cp;
diff --git a/src/lib/libc/stdlib/malloc.c b/src/lib/libc/stdlib/malloc.c
index d22fb38dae..24b22854a5 100644
--- a/src/lib/libc/stdlib/malloc.c
+++ b/src/lib/libc/stdlib/malloc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: malloc.c,v 1.182 2016/02/25 00:38:51 deraadt Exp $ */ 1/* $OpenBSD: malloc.c,v 1.183 2016/03/13 18:34:21 guenther Exp $ */
2/* 2/*
3 * Copyright (c) 2008, 2010, 2011 Otto Moerbeek <otto@drijf.net> 3 * Copyright (c) 2008, 2010, 2011 Otto Moerbeek <otto@drijf.net>
4 * Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org> 4 * Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org>
@@ -208,8 +208,6 @@ static int malloc_active; /* status of malloc */
208 208
209static u_char getrbyte(struct dir_info *d); 209static u_char getrbyte(struct dir_info *d);
210 210
211extern char *__progname;
212
213#ifdef MALLOC_STATS 211#ifdef MALLOC_STATS
214void malloc_dump(int); 212void malloc_dump(int);
215PROTO_NORMAL(malloc_dump); 213PROTO_NORMAL(malloc_dump);
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 @@
1/* $OpenBSD: setenv.c,v 1.16 2015/09/13 08:31:47 guenther Exp $ */ 1/* $OpenBSD: setenv.c,v 1.17 2016/03/13 18:34:21 guenther Exp $ */
2/* 2/*
3 * Copyright (c) 1987 Regents of the University of California. 3 * Copyright (c) 1987 Regents of the University of California.
4 * All rights reserved. 4 * All rights reserved.
@@ -32,7 +32,6 @@
32#include <stdlib.h> 32#include <stdlib.h>
33#include <string.h> 33#include <string.h>
34 34
35extern char **environ;
36static char **lastenv; /* last value of environ */ 35static char **lastenv; /* last value of environ */
37 36
38/* 37/*
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{