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/syslog_r.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/syslog_r.c')
-rw-r--r-- | lib/libc/gen/syslog_r.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/gen/syslog_r.c b/lib/libc/gen/syslog_r.c index c12534019af..f89107d796f 100644 --- a/lib/libc/gen/syslog_r.c +++ b/lib/libc/gen/syslog_r.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syslog_r.c,v 1.12 2016/02/19 23:49:38 millert Exp $ */ +/* $OpenBSD: syslog_r.c,v 1.13 2016/03/13 18:34:20 guenther Exp $ */ /* * Copyright (c) 1983, 1988, 1993 * The Regents of the University of California. All rights reserved. @@ -36,6 +36,7 @@ #include <fcntl.h> #include <paths.h> #include <stdio.h> +#include <stdlib.h> #include <string.h> #include <syslog.h> #include <time.h> @@ -43,9 +44,6 @@ #include <limits.h> #include <stdarg.h> -extern char *__progname; /* Program name, from crt0. */ - - /* Reentrant version of syslog, i.e. syslog_r() */ void syslog_r(int pri, struct syslog_data *data, const char *fmt, ...) |