diff options
author | 2007-09-09 18:46:34 +0000 | |
---|---|---|
committer | 2007-09-09 18:46:34 +0000 | |
commit | 141d24f55384b8e0603a929bb7d7d0cb30ce0c73 (patch) | |
tree | 4b2b86730983d6723f0c47570798445aa9b3e668 /lib/libc | |
parent | add string length arguments to some functions, and do not copy a string (diff) | |
download | wireguard-openbsd-141d24f55384b8e0603a929bb7d7d0cb30ce0c73.tar.xz wireguard-openbsd-141d24f55384b8e0603a929bb7d7d0cb30ce0c73.zip |
Silence erroneous "environ used, but not defined" lint warning by
providing a stub. ok deraadt@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/Lint_environ.c | 7 | ||||
-rw-r--r-- | lib/libc/sys/Makefile.inc | 6 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lib/libc/sys/Lint_environ.c b/lib/libc/sys/Lint_environ.c new file mode 100644 index 00000000000..2776ba4c913 --- /dev/null +++ b/lib/libc/sys/Lint_environ.c @@ -0,0 +1,7 @@ +/* $OpenBSD: Lint_environ.c,v 1.1 2007/09/09 18:46:34 otto Exp $ */ + +/* Public domain, Otto Moerbeek, 2007 */ + +#include <stdlib.h> + +char **environ; diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index 811b7519505..6e114fb3065 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.80 2006/10/24 04:40:59 tedu Exp $ +# $OpenBSD: Makefile.inc,v 1.81 2007/09/09 18:46:34 otto Exp $ # $NetBSD: Makefile.inc,v 1.35 1995/10/16 23:49:07 jtc Exp $ # @(#)Makefile.inc 8.1 (Berkeley) 6/17/93 @@ -13,11 +13,11 @@ SRCS+= Ovfork.S brk.S cerror.S exect.S fork.S rfork.S \ LSRCS+= Lint_Ovfork.c Lint_brk.c Lint_exect.c Lint_fork.c \ Lint_rfork.c Lint_sbrk.c \ Lint_sigpending.c Lint_sigprocmask.c Lint_sigreturn.c \ - Lint_sigsuspend.c Lint_syscall.c Lint_crt.c + Lint_sigsuspend.c Lint_syscall.c Lint_crt.c Lint_environ.c DPSRCS+= Lint_Ovfork.c Lint_brk.c Lint_exect.c Lint_fork.c \ Lint_sbrk.c \ Lint_sigpending.c Lint_sigprocmask.c Lint_sigreturn.c \ - Lint_sigsuspend.c Lint_syscall.c Lint_crt.c + Lint_sigsuspend.c Lint_syscall.c Lint_crt.c Lint_environ.c # glue to provide compatibility between GCC 1.X and 2.X and for compat # with old syscall interfaces. |