diff options
author | guenther <> | 2016-03-13 18:34:21 +0000 |
---|---|---|
committer | guenther <> | 2016-03-13 18:34:21 +0000 |
commit | 32c7768b61c95094702adc74eaa693e9f28c61a2 (patch) | |
tree | b5c10fdb5262fbf4e26b8f42490d471382d5bd4e /src/lib/libc/stdlib/malloc.c | |
parent | 2bae55188c77df70108a2fe686cff583e08b7ffb (diff) | |
download | openbsd-32c7768b61c95094702adc74eaa693e9f28c61a2.tar.gz openbsd-32c7768b61c95094702adc74eaa693e9f28c61a2.tar.bz2 openbsd-32c7768b61c95094702adc74eaa693e9f28c61a2.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 '')
-rw-r--r-- | src/lib/libc/stdlib/malloc.c | 4 |
1 files changed, 1 insertions, 3 deletions
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 | ||
209 | static u_char getrbyte(struct dir_info *d); | 209 | static u_char getrbyte(struct dir_info *d); |
210 | 210 | ||
211 | extern char *__progname; | ||
212 | |||
213 | #ifdef MALLOC_STATS | 211 | #ifdef MALLOC_STATS |
214 | void malloc_dump(int); | 212 | void malloc_dump(int); |
215 | PROTO_NORMAL(malloc_dump); | 213 | PROTO_NORMAL(malloc_dump); |