summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Krause <david@cvs.openbsd.org>2003-07-18 22:58:57 +0000
committerDavid Krause <david@cvs.openbsd.org>2003-07-18 22:58:57 +0000
commita97d0cab218a8e2bcb331016bbb793706258cd7c (patch)
tree43715f40b8a124b9280ecb54912cdeb90da2848b
parentf5ba9debe12b4a1d0d88e46e78e8601c76b248d8 (diff)
add missing includes
ok tedu@
-rw-r--r--usr.sbin/amd/rpcx/amq_svc.c5
-rw-r--r--usr.sbin/pppd/ipcp.c5
-rw-r--r--usr.sbin/quotaon/quotaon.c5
-rw-r--r--usr.sbin/sesd/srcs/getencstat.c3
-rw-r--r--usr.sbin/timed/timed/measure.c3
-rw-r--r--usr.sbin/timed/timed/timed.c3
-rw-r--r--usr.sbin/wsconscfg/wsconscfg.c3
-rw-r--r--usr.sbin/yppoll/yppoll.c5
-rw-r--r--usr.sbin/ypserv/makedbm/makedbm.c5
-rw-r--r--usr.sbin/ypserv/mkalias/mkalias.c5
-rw-r--r--usr.sbin/ypserv/stdethers/stdethers.c5
-rw-r--r--usr.sbin/ypserv/stdhosts/stdhosts.c5
-rw-r--r--usr.sbin/ypset/ypset.c5
13 files changed, 37 insertions, 20 deletions
diff --git a/usr.sbin/amd/rpcx/amq_svc.c b/usr.sbin/amd/rpcx/amq_svc.c
index 08deb830779..7b83c43fff6 100644
--- a/usr.sbin/amd/rpcx/amq_svc.c
+++ b/usr.sbin/amd/rpcx/amq_svc.c
@@ -32,11 +32,14 @@
* SUCH DAMAGE.
*
* from: @(#)amq_svc.c 8.1 (Berkeley) 6/6/93
- * $Id: amq_svc.c,v 1.6 2003/06/02 23:36:52 millert Exp $
+ * $Id: amq_svc.c,v 1.7 2003/07/18 22:58:56 david Exp $
*
*/
#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
#include <syslog.h>
#include "am.h"
diff --git a/usr.sbin/pppd/ipcp.c b/usr.sbin/pppd/ipcp.c
index 578cb771827..30de2b92ed6 100644
--- a/usr.sbin/pppd/ipcp.c
+++ b/usr.sbin/pppd/ipcp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipcp.c,v 1.10 2003/04/04 20:25:07 deraadt Exp $ */
+/* $OpenBSD: ipcp.c,v 1.11 2003/07/18 22:58:56 david Exp $ */
/*
* ipcp.c - PPP IP Control Protocol.
@@ -46,7 +46,7 @@
#if 0
static char rcsid[] = "Id: ipcp.c,v 1.34 1998/04/28 23:38:09 paulus Exp $";
#else
-static char rcsid[] = "$OpenBSD: ipcp.c,v 1.10 2003/04/04 20:25:07 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ipcp.c,v 1.11 2003/07/18 22:58:56 david Exp $";
#endif
#endif
@@ -55,6 +55,7 @@ static char rcsid[] = "$OpenBSD: ipcp.c,v 1.10 2003/04/04 20:25:07 deraadt Exp $
*/
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <netdb.h>
diff --git a/usr.sbin/quotaon/quotaon.c b/usr.sbin/quotaon/quotaon.c
index 64b69729cc0..7c7a4e244b2 100644
--- a/usr.sbin/quotaon/quotaon.c
+++ b/usr.sbin/quotaon/quotaon.c
@@ -38,7 +38,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)quotaon.c 8.1 (Berkeley) 6/6/93";*/
-static char *rcsid = "$Id: quotaon.c,v 1.19 2003/06/26 19:47:09 deraadt Exp $";
+static char *rcsid = "$Id: quotaon.c,v 1.20 2003/07/18 22:58:56 david Exp $";
#endif /* not lint */
/*
@@ -48,9 +48,12 @@ static char *rcsid = "$Id: quotaon.c,v 1.19 2003/06/26 19:47:09 deraadt Exp $";
#include <sys/file.h>
#include <sys/mount.h>
#include <ufs/ufs/quota.h>
+#include <err.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <fstab.h>
+#include <unistd.h>
char *qfname = QUOTAFILENAME;
char *qfextension[] = INITQFNAMES;
diff --git a/usr.sbin/sesd/srcs/getencstat.c b/usr.sbin/sesd/srcs/getencstat.c
index e53c07a33b3..fe899712e69 100644
--- a/usr.sbin/sesd/srcs/getencstat.c
+++ b/usr.sbin/sesd/srcs/getencstat.c
@@ -1,6 +1,6 @@
/* $NetBSD: $ */
/* $FreeBSD: $ */
-/* $OpenBSD: getencstat.c,v 1.3 2002/02/16 21:28:09 millert Exp $ */
+/* $OpenBSD: getencstat.c,v 1.4 2003/07/18 22:58:56 david Exp $ */
/*
* Copyright (c) 2000 by Matthew Jacob
* All rights reserved.
@@ -37,6 +37,7 @@
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include SESINC
diff --git a/usr.sbin/timed/timed/measure.c b/usr.sbin/timed/timed/measure.c
index 533aa80fc8d..0313aa9c9f6 100644
--- a/usr.sbin/timed/timed/measure.c
+++ b/usr.sbin/timed/timed/measure.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: measure.c,v 1.10 2003/06/12 21:09:48 deraadt Exp $ */
+/* $OpenBSD: measure.c,v 1.11 2003/07/18 22:58:56 david Exp $ */
/*-
* Copyright (c) 1985, 1993 The Regents of the University of California.
@@ -37,6 +37,7 @@ static char sccsid[] = "@(#)measure.c 5.1 (Berkeley) 5/11/93";
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/ip_icmp.h>
+#include <signal.h>
#define MSEC_DAY (SECDAY*1000)
diff --git a/usr.sbin/timed/timed/timed.c b/usr.sbin/timed/timed/timed.c
index b1614a6f3ea..faaa3b638ab 100644
--- a/usr.sbin/timed/timed/timed.c
+++ b/usr.sbin/timed/timed/timed.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: timed.c,v 1.21 2003/06/26 15:56:51 mickey Exp $ */
+/* $OpenBSD: timed.c,v 1.22 2003/07/18 22:58:56 david Exp $ */
/*-
* Copyright (c) 1985, 1993 The Regents of the University of California.
@@ -51,6 +51,7 @@ static char sccsid[] = "@(#)timed.c 5.1 (Berkeley) 5/11/93";
#include <sys/queue.h>
#include <sys/times.h>
#include <netgroup.h>
+#include <err.h>
int trace = 0;
int sock, sock_raw = -1;
diff --git a/usr.sbin/wsconscfg/wsconscfg.c b/usr.sbin/wsconscfg/wsconscfg.c
index 938d89d8945..bbce9282fa1 100644
--- a/usr.sbin/wsconscfg/wsconscfg.c
+++ b/usr.sbin/wsconscfg/wsconscfg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsconscfg.c,v 1.7 2002/02/16 21:28:10 millert Exp $ */
+/* $OpenBSD: wsconscfg.c,v 1.8 2003/07/18 22:58:56 david Exp $ */
/* $NetBSD: wsconscfg.c,v 1.4 1999/07/29 18:24:10 augustss Exp $ */
/*
@@ -34,6 +34,7 @@
*/
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
diff --git a/usr.sbin/yppoll/yppoll.c b/usr.sbin/yppoll/yppoll.c
index 195a3b7093b..1f59a86d7b9 100644
--- a/usr.sbin/yppoll/yppoll.c
+++ b/usr.sbin/yppoll/yppoll.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: yppoll.c,v 1.7 2003/07/10 08:00:28 deraadt Exp $ */
+/* $OpenBSD: yppoll.c,v 1.8 2003/07/18 22:58:56 david Exp $ */
/* $NetBSD: yppoll.c,v 1.5 1996/05/13 02:46:36 thorpej Exp $ */
/*
@@ -36,13 +36,14 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: yppoll.c,v 1.7 2003/07/10 08:00:28 deraadt Exp $";
+static char rcsid[] = "$Id: yppoll.c,v 1.8 2003/07/18 22:58:56 david Exp $";
#endif /* not lint */
#include <sys/param.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
+#include <stdlib.h>
#include <time.h>
#include <netdb.h>
#include <unistd.h>
diff --git a/usr.sbin/ypserv/makedbm/makedbm.c b/usr.sbin/ypserv/makedbm/makedbm.c
index 8fb78f60872..7afbe919cd6 100644
--- a/usr.sbin/ypserv/makedbm/makedbm.c
+++ b/usr.sbin/ypserv/makedbm/makedbm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: makedbm.c,v 1.22 2003/07/15 06:10:46 deraadt Exp $ */
+/* $OpenBSD: makedbm.c,v 1.23 2003/07/18 22:58:56 david Exp $ */
/*
* Copyright (c) 1994-97 Mats O Jansson <moj@stacken.kth.se>
@@ -27,10 +27,11 @@
*/
#ifndef LINT
-static const char rcsid[] = "$OpenBSD: makedbm.c,v 1.22 2003/07/15 06:10:46 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: makedbm.c,v 1.23 2003/07/18 22:58:56 david Exp $";
#endif
#include <stdio.h>
+#include <stdlib.h>
#include <fcntl.h>
#include <ctype.h>
#include <sys/stat.h>
diff --git a/usr.sbin/ypserv/mkalias/mkalias.c b/usr.sbin/ypserv/mkalias/mkalias.c
index 5e58e5a15dd..e2058c82ceb 100644
--- a/usr.sbin/ypserv/mkalias/mkalias.c
+++ b/usr.sbin/ypserv/mkalias/mkalias.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkalias.c,v 1.15 2003/07/15 06:10:46 deraadt Exp $ */
+/* $OpenBSD: mkalias.c,v 1.16 2003/07/18 22:58:56 david Exp $ */
/*
* Copyright (c) 1997 Mats O Jansson <moj@stacken.kth.se>
@@ -27,13 +27,14 @@
*/
#ifndef LINT
-static const char rcsid[] = "$OpenBSD: mkalias.c,v 1.15 2003/07/15 06:10:46 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: mkalias.c,v 1.16 2003/07/18 22:58:56 david Exp $";
#endif
#include <ctype.h>
#include <fcntl.h>
#include <netdb.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/param.h>
diff --git a/usr.sbin/ypserv/stdethers/stdethers.c b/usr.sbin/ypserv/stdethers/stdethers.c
index db9e6acdc50..d978e06f51d 100644
--- a/usr.sbin/ypserv/stdethers/stdethers.c
+++ b/usr.sbin/ypserv/stdethers/stdethers.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdethers.c,v 1.10 2003/07/15 06:10:46 deraadt Exp $ */
+/* $OpenBSD: stdethers.c,v 1.11 2003/07/18 22:58:56 david Exp $ */
/*
* Copyright (c) 1995 Mats O Jansson <moj@stacken.kth.se>
@@ -27,7 +27,7 @@
*/
#ifndef LINT
-static const char rcsid[] = "$OpenBSD: stdethers.c,v 1.10 2003/07/15 06:10:46 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: stdethers.c,v 1.11 2003/07/18 22:58:56 david Exp $";
#endif
#include <sys/types.h>
@@ -36,6 +36,7 @@ static const char rcsid[] = "$OpenBSD: stdethers.c,v 1.10 2003/07/15 06:10:46 de
#include <netinet/in.h>
#include <netinet/if_ether.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <ctype.h>
diff --git a/usr.sbin/ypserv/stdhosts/stdhosts.c b/usr.sbin/ypserv/stdhosts/stdhosts.c
index 21b9cda0291..31da8cfef2b 100644
--- a/usr.sbin/ypserv/stdhosts/stdhosts.c
+++ b/usr.sbin/ypserv/stdhosts/stdhosts.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdhosts.c,v 1.11 2003/06/02 21:58:26 maja Exp $ */
+/* $OpenBSD: stdhosts.c,v 1.12 2003/07/18 22:58:56 david Exp $ */
/*
* Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se>
@@ -27,7 +27,7 @@
*/
#ifndef LINT
-static const char rcsid[] = "$OpenBSD: stdhosts.c,v 1.11 2003/06/02 21:58:26 maja Exp $";
+static const char rcsid[] = "$OpenBSD: stdhosts.c,v 1.12 2003/07/18 22:58:56 david Exp $";
#endif
#include <sys/types.h>
@@ -35,6 +35,7 @@ static const char rcsid[] = "$OpenBSD: stdhosts.c,v 1.11 2003/06/02 21:58:26 maj
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <err.h>
diff --git a/usr.sbin/ypset/ypset.c b/usr.sbin/ypset/ypset.c
index 634ec670442..b5fbd0c5dec 100644
--- a/usr.sbin/ypset/ypset.c
+++ b/usr.sbin/ypset/ypset.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypset.c,v 1.11 2003/07/10 08:00:28 deraadt Exp $ */
+/* $OpenBSD: ypset.c,v 1.12 2003/07/18 22:58:56 david Exp $ */
/* $NetBSD: ypset.c,v 1.8 1996/05/13 02:46:33 thorpej Exp $ */
/*
@@ -28,13 +28,14 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: ypset.c,v 1.11 2003/07/10 08:00:28 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ypset.c,v 1.12 2003/07/18 22:58:56 david Exp $";
#endif
#include <sys/param.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <netdb.h>