diff options
author | David Krause <david@cvs.openbsd.org> | 2003-07-18 23:05:14 +0000 |
---|---|---|
committer | David Krause <david@cvs.openbsd.org> | 2003-07-18 23:05:14 +0000 |
commit | 0470d3c1e67d8bcfa4897e2df4090e4651fc61fd (patch) | |
tree | e765f51e1364f95e38e341927ae1039df4dc8efd | |
parent | 43f142e04267bb0aeca66556f3e3b79fc0fbb538 (diff) |
add missing includes
ok tedu@
-rw-r--r-- | lib/libc/stdlib/cfree.c | 5 | ||||
-rw-r--r-- | lib/libc/sys/stack_protector.c | 7 | ||||
-rw-r--r-- | lib/libcompat/regexp/regerror.c | 5 | ||||
-rw-r--r-- | lib/libkvm/kvm_getloadavg.c | 5 | ||||
-rw-r--r-- | lib/libocurses/refresh.c | 1 | ||||
-rw-r--r-- | lib/libpcap/grammar.y | 5 | ||||
-rw-r--r-- | lib/libwrap/clean_exit.c | 5 | ||||
-rw-r--r-- | lib/libwrap/percent_x.c | 5 | ||||
-rw-r--r-- | sys/net/bpf_filter.c | 3 |
9 files changed, 26 insertions, 15 deletions
diff --git a/lib/libc/stdlib/cfree.c b/lib/libc/stdlib/cfree.c index 078e9de23f2..ecbc11d6c30 100644 --- a/lib/libc/stdlib/cfree.c +++ b/lib/libc/stdlib/cfree.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cfree.c,v 1.2 2003/06/04 16:35:23 deraadt Exp $ */ +/* $OpenBSD: cfree.c,v 1.3 2003/07/18 23:05:13 david Exp $ */ /* * Copyright (c) 1996 SigmaSoft, Th. Lockert <tholo@sigmasoft.com> @@ -26,10 +26,11 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: cfree.c,v 1.2 2003/06/04 16:35:23 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: cfree.c,v 1.3 2003/07/18 23:05:13 david Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/cdefs.h> +#include <stdlib.h> #ifdef __indr_reference __indr_reference(free, cfree); diff --git a/lib/libc/sys/stack_protector.c b/lib/libc/sys/stack_protector.c index e954f76a71f..9f45343311c 100644 --- a/lib/libc/sys/stack_protector.c +++ b/lib/libc/sys/stack_protector.c @@ -1,4 +1,4 @@ -/* $OpenBSD: stack_protector.c,v 1.4 2003/03/03 19:52:41 deraadt Exp $ */ +/* $OpenBSD: stack_protector.c,v 1.5 2003/07/18 23:05:13 david Exp $ */ /* * Copyright (c) 2002 Hiroaki Etoh, Federico G. Schwindt, and Miodrag Vallat. @@ -28,12 +28,15 @@ */ #if defined(LIBC_SCCS) && !defined(list) -static char rcsid[] = "$OpenBSD: stack_protector.c,v 1.4 2003/03/03 19:52:41 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: stack_protector.c,v 1.5 2003/07/18 23:05:13 david Exp $"; #endif #include <sys/param.h> #include <sys/sysctl.h> +#include <signal.h> +#include <string.h> #include <syslog.h> +#include <unistd.h> long __guard[8] = {0, 0, 0, 0, 0, 0, 0, 0}; static void __guard_setup(void) __attribute__ ((constructor)); diff --git a/lib/libcompat/regexp/regerror.c b/lib/libcompat/regexp/regerror.c index c98b8a3d4f7..92bb8996643 100644 --- a/lib/libcompat/regexp/regerror.c +++ b/lib/libcompat/regexp/regerror.c @@ -1,8 +1,9 @@ -/* $OpenBSD: regerror.c,v 1.5 2003/06/26 23:19:32 deraadt Exp $ */ +/* $OpenBSD: regerror.c,v 1.6 2003/07/18 23:05:13 david Exp $ */ #ifndef lint -static char *rcsid = "$OpenBSD: regerror.c,v 1.5 2003/06/26 23:19:32 deraadt Exp $"; +static char *rcsid = "$OpenBSD: regerror.c,v 1.6 2003/07/18 23:05:13 david Exp $"; #endif /* not lint */ +#include <err.h> #include <regexp.h> #include <stdio.h> diff --git a/lib/libkvm/kvm_getloadavg.c b/lib/libkvm/kvm_getloadavg.c index ff8a6c510cb..e88c7c36ca8 100644 --- a/lib/libkvm/kvm_getloadavg.c +++ b/lib/libkvm/kvm_getloadavg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_getloadavg.c,v 1.4 2003/06/02 20:18:40 millert Exp $ */ +/* $OpenBSD: kvm_getloadavg.c,v 1.5 2003/07/18 23:05:13 david Exp $ */ /* $NetBSD: kvm_getloadavg.c,v 1.2 1996/03/18 22:33:31 thorpej Exp $ */ /*- @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)kvm_getloadavg.c 8.1 (Berkeley) 6/4/93"; #else -static char *rcsid = "$OpenBSD: kvm_getloadavg.c,v 1.4 2003/06/02 20:18:40 millert Exp $"; +static char *rcsid = "$OpenBSD: kvm_getloadavg.c,v 1.5 2003/07/18 23:05:13 david Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -48,6 +48,7 @@ static char *rcsid = "$OpenBSD: kvm_getloadavg.c,v 1.4 2003/06/02 20:18:40 mille #include <fcntl.h> #include <limits.h> #include <nlist.h> +#include <stdlib.h> #include <kvm.h> #include "kvm_private.h" diff --git a/lib/libocurses/refresh.c b/lib/libocurses/refresh.c index 26e2cccad64..7952f672859 100644 --- a/lib/libocurses/refresh.c +++ b/lib/libocurses/refresh.c @@ -31,6 +31,7 @@ static char sccsid[] = "@(#)refresh.c 8.7 (Berkeley) 8/13/94"; #endif /* not lint */ +#include <stdlib.h> #include <string.h> #include "curses.h" diff --git a/lib/libpcap/grammar.y b/lib/libpcap/grammar.y index 6de982046b7..71fa37bba12 100644 --- a/lib/libpcap/grammar.y +++ b/lib/libpcap/grammar.y @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: grammar.y,v 1.11 2003/05/14 08:50:37 canacar Exp $ */ +/* $OpenBSD: grammar.y,v 1.12 2003/07/18 23:05:13 david Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996 @@ -24,7 +24,7 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /cvs/OpenBSD/src/lib/libpcap/grammar.y,v 1.11 2003/05/14 08:50:37 canacar Exp $ (LBL)"; + "@(#) $Header: /cvs/OpenBSD/src/lib/libpcap/grammar.y,v 1.12 2003/07/18 23:05:13 david Exp $ (LBL)"; #endif #include <sys/types.h> @@ -42,6 +42,7 @@ struct rtentry; #include <net/pfvar.h> #include <stdio.h> +#include <string.h> #include "pcap-int.h" diff --git a/lib/libwrap/clean_exit.c b/lib/libwrap/clean_exit.c index 3e6f3815462..8b23e53e3bb 100644 --- a/lib/libwrap/clean_exit.c +++ b/lib/libwrap/clean_exit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clean_exit.c,v 1.1 1997/02/26 03:06:50 downsj Exp $ */ +/* $OpenBSD: clean_exit.c,v 1.2 2003/07/18 23:05:13 david Exp $ */ /* * clean_exit() cleans up and terminates the program. It should be called @@ -14,11 +14,12 @@ #if 0 static char sccsid[] = "@(#) clean_exit.c 1.4 94/12/28 17:42:19"; #else -static char rcsid[] = "$OpenBSD: clean_exit.c,v 1.1 1997/02/26 03:06:50 downsj Exp $"; +static char rcsid[] = "$OpenBSD: clean_exit.c,v 1.2 2003/07/18 23:05:13 david Exp $"; #endif #endif #include <stdio.h> +#include <stdlib.h> #include <unistd.h> #include "tcpd.h" diff --git a/lib/libwrap/percent_x.c b/lib/libwrap/percent_x.c index 96eb5eb8ed9..60291685f93 100644 --- a/lib/libwrap/percent_x.c +++ b/lib/libwrap/percent_x.c @@ -1,4 +1,4 @@ -/* $OpenBSD: percent_x.c,v 1.1 1997/02/26 03:06:55 downsj Exp $ */ +/* $OpenBSD: percent_x.c,v 1.2 2003/07/18 23:05:13 david Exp $ */ /* * percent_x() takes a string and performs %<char> expansions. It aborts the @@ -16,13 +16,14 @@ #if 0 static char sccsid[] = "@(#) percent_x.c 1.4 94/12/28 17:42:37"; #else -static char rcsid[] = "$OpenBSD: percent_x.c,v 1.1 1997/02/26 03:06:55 downsj Exp $"; +static char rcsid[] = "$OpenBSD: percent_x.c,v 1.2 2003/07/18 23:05:13 david Exp $"; #endif #endif /* System libraries. */ #include <stdio.h> +#include <stdlib.h> #include <syslog.h> #include <string.h> #include <unistd.h> diff --git a/sys/net/bpf_filter.c b/sys/net/bpf_filter.c index fed5cb8d197..94cd25013ce 100644 --- a/sys/net/bpf_filter.c +++ b/sys/net/bpf_filter.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf_filter.c,v 1.10 2003/06/27 19:01:52 deraadt Exp $ */ +/* $OpenBSD: bpf_filter.c,v 1.11 2003/07/18 23:05:13 david Exp $ */ /* $NetBSD: bpf_filter.c,v 1.12 1996/02/13 22:00:00 christos Exp $ */ /* @@ -41,6 +41,7 @@ #include <sys/types.h> #include <sys/time.h> #ifndef _KERNEL +#include <stdlib.h> #include "pcap.h" #endif |