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/setprogname.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/setprogname.c')
-rw-r--r-- | lib/libc/gen/setprogname.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/gen/setprogname.c b/lib/libc/gen/setprogname.c index 089a15ae29a..ec3189fa699 100644 --- a/lib/libc/gen/setprogname.c +++ b/lib/libc/gen/setprogname.c @@ -1,4 +1,4 @@ -/* $OpenBSD: setprogname.c,v 1.4 2013/11/12 06:09:48 deraadt Exp $ */ +/* $OpenBSD: setprogname.c,v 1.5 2016/03/13 18:34:20 guenther Exp $ */ /* * Copyright (c) 2013 Antoine Jacoutot <ajacoutot@openbsd.org> * @@ -18,8 +18,6 @@ #include <string.h> #include <stdlib.h> -extern const char *__progname; - void setprogname(const char *progname) { |