diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2016-03-13 18:34:22 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2016-03-13 18:34:22 +0000 |
commit | 8a59d71f31abaa642f02dbeac92ab61c3cfcb3e1 (patch) | |
tree | 0579de35b795570fbe1c5a9065453eb9f30f3a66 /lib/libc/gen/vwarn.c | |
parent | e028b5ad03d3421ea9ae9ef0d16f68d503f04315 (diff) |
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/vwarn.c')
-rw-r--r-- | lib/libc/gen/vwarn.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/gen/vwarn.c b/lib/libc/gen/vwarn.c index 44d8be48ef5..457d619ce0f 100644 --- a/lib/libc/gen/vwarn.c +++ b/lib/libc/gen/vwarn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vwarn.c,v 1.10 2015/08/31 02:53:57 guenther Exp $ */ +/* $OpenBSD: vwarn.c,v 1.11 2016/03/13 18:34:20 guenther Exp $ */ /*- * Copyright (c) 1993 * The Regents of the University of California. All rights reserved. @@ -31,11 +31,10 @@ #include <err.h> #include <errno.h> #include <stdio.h> +#include <stdlib.h> #include <string.h> #include <stdarg.h> -extern char *__progname; /* Program name, from crt0. */ - void vwarn(const char *fmt, va_list ap) { |