diff options
author | 2016-03-13 18:34:20 +0000 | |
---|---|---|
committer | 2016-03-13 18:34:20 +0000 | |
commit | e422429247bd689ad82a15ebdacdfc785b980b1d (patch) | |
tree | e55007aaec3fc67c3671cede86e113d93041c114 /lib/libc/gen/getprogname.c | |
parent | remove an extra space before ^\ help message. (diff) | |
download | wireguard-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/gen/getprogname.c')
-rw-r--r-- | lib/libc/gen/getprogname.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/gen/getprogname.c b/lib/libc/gen/getprogname.c index 17046abc927..a020830c1e7 100644 --- a/lib/libc/gen/getprogname.c +++ b/lib/libc/gen/getprogname.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getprogname.c,v 1.3 2013/11/12 06:09:48 deraadt Exp $ */ +/* $OpenBSD: getprogname.c,v 1.4 2016/03/13 18:34:20 guenther Exp $ */ /* * Copyright (c) 2013 Antoine Jacoutot <ajacoutot@openbsd.org> * @@ -17,8 +17,6 @@ #include <stdlib.h> -extern const char *__progname; - const char * getprogname(void) { |