summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDavid Krause <david@cvs.openbsd.org>2003-07-10 00:06:53 +0000
committerDavid Krause <david@cvs.openbsd.org>2003-07-10 00:06:53 +0000
commitff1eebe32bb029e20710e7ca1756911d42d46fbf (patch)
tree009ea3b0cb6633dd34add944159e34a4915266d3 /usr.bin
parent6c3b78320db59d66733755dd77e5d095dec46f61 (diff)
add missing includes
ok deraadt@ tedu@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/arch/arch.c4
-rw-r--r--usr.bin/aucat/aucat.c3
-rw-r--r--usr.bin/compress/gzopen.c5
-rw-r--r--usr.bin/dirname/dirname.c5
-rw-r--r--usr.bin/finger/sprint.c5
-rw-r--r--usr.bin/getconf/getconf.c5
-rw-r--r--usr.bin/getopt/getopt.c5
-rw-r--r--usr.bin/gprof/printgprof.c6
-rw-r--r--usr.bin/gprof/printlist.c6
-rw-r--r--usr.bin/hexdump/hexdump.c5
-rw-r--r--usr.bin/locate/bigram/locate.bigram.c7
-rw-r--r--usr.bin/netstat/if.c5
-rw-r--r--usr.bin/passwd/passwd.c5
-rw-r--r--usr.bin/paste/paste.c5
-rw-r--r--usr.bin/pmdb/arch/i386/i386.c3
-rw-r--r--usr.bin/renice/renice.c5
-rw-r--r--usr.bin/rpcgen/rpc_hout.c3
-rw-r--r--usr.bin/sup/src/scan.c3
-rw-r--r--usr.bin/systat/keyboard.c5
-rw-r--r--usr.bin/talk/get_names.c5
-rw-r--r--usr.bin/talk/init_disp.c5
-rw-r--r--usr.bin/tn3270/ascii/mset.c5
-rw-r--r--usr.bin/tn3270/sys_curses/system.c5
-rw-r--r--usr.bin/uname/uname.c5
-rw-r--r--usr.bin/unexpand/unexpand.c5
-rw-r--r--usr.bin/uudecode/uudecode.c5
-rw-r--r--usr.bin/what/what.c5
-rw-r--r--usr.bin/window/compress.c5
-rw-r--r--usr.bin/window/var.c5
-rw-r--r--usr.bin/window/wwclose.c6
-rw-r--r--usr.bin/window/wwend.c6
-rw-r--r--usr.bin/window/wwenviron.c6
-rw-r--r--usr.bin/window/wwflush.c6
-rw-r--r--usr.bin/window/wwiomux.c5
-rw-r--r--usr.bin/window/wwopen.c5
-rw-r--r--usr.bin/window/wwscroll.c6
-rw-r--r--usr.bin/window/wwspawn.c5
-rw-r--r--usr.bin/window/wwsuspend.c5
-rw-r--r--usr.bin/write/write.c5
-rw-r--r--usr.bin/ypcat/ypcat.c5
-rw-r--r--usr.bin/ypmatch/ypmatch.c5
41 files changed, 127 insertions, 78 deletions
diff --git a/usr.bin/arch/arch.c b/usr.bin/arch/arch.c
index f584f9d7848..3b10faea299 100644
--- a/usr.bin/arch/arch.c
+++ b/usr.bin/arch/arch.c
@@ -24,7 +24,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: arch.c,v 1.8 2003/06/10 22:20:44 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: arch.c,v 1.9 2003/07/10 00:06:50 david Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -32,6 +32,8 @@ static char rcsid[] = "$OpenBSD: arch.c,v 1.8 2003/06/10 22:20:44 deraadt Exp $"
#include <err.h>
#include <locale.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
static void usage(void);
diff --git a/usr.bin/aucat/aucat.c b/usr.bin/aucat/aucat.c
index fab357e4c25..d4fe78c8ceb 100644
--- a/usr.bin/aucat/aucat.c
+++ b/usr.bin/aucat/aucat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aucat.c,v 1.7 2003/07/02 21:04:09 deraadt Exp $ */
+/* $OpenBSD: aucat.c,v 1.8 2003/07/10 00:06:50 david Exp $ */
/*
* Copyright (c) 1997 Kenneth Stailey. All rights reserved.
*
@@ -33,6 +33,7 @@
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <err.h>
diff --git a/usr.bin/compress/gzopen.c b/usr.bin/compress/gzopen.c
index f821b9e996d..b73ed5d2422 100644
--- a/usr.bin/compress/gzopen.c
+++ b/usr.bin/compress/gzopen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gzopen.c,v 1.10 2003/07/08 00:30:12 mickey Exp $ */
+/* $OpenBSD: gzopen.c,v 1.11 2003/07/10 00:06:50 david Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff
@@ -59,12 +59,13 @@
*/
const char gz_rcsid[] =
- "$OpenBSD: gzopen.c,v 1.10 2003/07/08 00:30:12 mickey Exp $";
+ "$OpenBSD: gzopen.c,v 1.11 2003/07/10 00:06:50 david Exp $";
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <zlib.h>
diff --git a/usr.bin/dirname/dirname.c b/usr.bin/dirname/dirname.c
index e136f5c1bb2..2f88c3cf5ab 100644
--- a/usr.bin/dirname/dirname.c
+++ b/usr.bin/dirname/dirname.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dirname.c,v 1.9 2003/06/17 21:56:25 millert Exp $ */
+/* $OpenBSD: dirname.c,v 1.10 2003/07/10 00:06:50 david Exp $ */
/*
* Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -17,13 +17,14 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: dirname.c,v 1.9 2003/06/17 21:56:25 millert Exp $";
+static char rcsid[] = "$OpenBSD: dirname.c,v 1.10 2003/07/10 00:06:50 david Exp $";
#endif /* not lint */
#include <err.h>
#include <libgen.h>
#include <locale.h>
#include <stdio.h>
+#include <stdlib.h>
int
main(int argc, char *argv[])
diff --git a/usr.bin/finger/sprint.c b/usr.bin/finger/sprint.c
index 26428046f19..de1ae9d2272 100644
--- a/usr.bin/finger/sprint.c
+++ b/usr.bin/finger/sprint.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sprint.c,v 1.8 2003/06/10 22:20:46 deraadt Exp $ */
+/* $OpenBSD: sprint.c,v 1.9 2003/07/10 00:06:50 david Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@@ -34,7 +34,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)sprint.c 5.8 (Berkeley) 12/4/90";*/
-static char rcsid[] = "$OpenBSD: sprint.c,v 1.8 2003/06/10 22:20:46 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: sprint.c,v 1.9 2003/07/10 00:06:50 david Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -42,6 +42,7 @@ static char rcsid[] = "$OpenBSD: sprint.c,v 1.8 2003/06/10 22:20:46 deraadt Exp
#include <tzfile.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <err.h>
#include "finger.h"
#include "extern.h"
diff --git a/usr.bin/getconf/getconf.c b/usr.bin/getconf/getconf.c
index daadb246667..89925911875 100644
--- a/usr.bin/getconf/getconf.c
+++ b/usr.bin/getconf/getconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getconf.c,v 1.8 2003/06/10 22:20:47 deraadt Exp $ */
+/* $OpenBSD: getconf.c,v 1.9 2003/07/10 00:06:51 david Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -41,11 +41,12 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: getconf.c,v 1.8 2003/06/10 22:20:47 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: getconf.c,v 1.9 2003/07/10 00:06:51 david Exp $";
#endif /* not lint */
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <limits.h>
#include <locale.h>
#include <unistd.h>
diff --git a/usr.bin/getopt/getopt.c b/usr.bin/getopt/getopt.c
index d09d282a625..d5e309d9d50 100644
--- a/usr.bin/getopt/getopt.c
+++ b/usr.bin/getopt/getopt.c
@@ -1,10 +1,11 @@
-/* $OpenBSD: getopt.c,v 1.5 2003/06/10 22:20:47 deraadt Exp $ */
+/* $OpenBSD: getopt.c,v 1.6 2003/07/10 00:06:51 david Exp $ */
#ifndef lint
-static char rcsid[] = "$OpenBSD: getopt.c,v 1.5 2003/06/10 22:20:47 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: getopt.c,v 1.6 2003/07/10 00:06:51 david Exp $";
#endif /* not lint */
#include <stdio.h>
+#include <stdlib.h>
#include <unistd.h>
int
diff --git a/usr.bin/gprof/printgprof.c b/usr.bin/gprof/printgprof.c
index f5beacf1ea3..d6114ee7e18 100644
--- a/usr.bin/gprof/printgprof.c
+++ b/usr.bin/gprof/printgprof.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printgprof.c,v 1.8 2003/06/03 02:56:08 millert Exp $ */
+/* $OpenBSD: printgprof.c,v 1.9 2003/07/10 00:06:51 david Exp $ */
/* $NetBSD: printgprof.c,v 1.5 1995/04/19 07:16:21 cgd Exp $ */
/*
@@ -34,10 +34,12 @@
#if 0
static char sccsid[] = "@(#)printgprof.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: printgprof.c,v 1.8 2003/06/03 02:56:08 millert Exp $";
+static char rcsid[] = "$OpenBSD: printgprof.c,v 1.9 2003/07/10 00:06:51 david Exp $";
#endif
#endif /* not lint */
+#include <string.h>
+
#include "gprof.h"
#include "pathnames.h"
diff --git a/usr.bin/gprof/printlist.c b/usr.bin/gprof/printlist.c
index c6d9b893631..5e473e40dc7 100644
--- a/usr.bin/gprof/printlist.c
+++ b/usr.bin/gprof/printlist.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printlist.c,v 1.4 2003/06/03 02:56:08 millert Exp $ */
+/* $OpenBSD: printlist.c,v 1.5 2003/07/10 00:06:51 david Exp $ */
/* $NetBSD: printlist.c,v 1.5 1995/04/19 07:16:23 cgd Exp $ */
/*
@@ -34,10 +34,12 @@
#if 0
static char sccsid[] = "@(#)printlist.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: printlist.c,v 1.4 2003/06/03 02:56:08 millert Exp $";
+static char rcsid[] = "$OpenBSD: printlist.c,v 1.5 2003/07/10 00:06:51 david Exp $";
#endif
#endif /* not lint */
+#include <string.h>
+
#include "gprof.h"
/*
diff --git a/usr.bin/hexdump/hexdump.c b/usr.bin/hexdump/hexdump.c
index 4f8aac6282e..8fc79f38358 100644
--- a/usr.bin/hexdump/hexdump.c
+++ b/usr.bin/hexdump/hexdump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hexdump.c,v 1.10 2003/06/10 22:20:47 deraadt Exp $ */
+/* $OpenBSD: hexdump.c,v 1.11 2003/07/10 00:06:51 david Exp $ */
/* $NetBSD: hexdump.c,v 1.7 1997/10/19 02:34:06 lukem Exp $ */
/*
@@ -38,11 +38,12 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)hexdump.c 5.5 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$OpenBSD: hexdump.c,v 1.10 2003/06/10 22:20:47 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: hexdump.c,v 1.11 2003/07/10 00:06:51 david Exp $";
#endif /* not lint */
#include <sys/types.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include "hexdump.h"
diff --git a/usr.bin/locate/bigram/locate.bigram.c b/usr.bin/locate/bigram/locate.bigram.c
index c6a85d384cb..79848e3e86f 100644
--- a/usr.bin/locate/bigram/locate.bigram.c
+++ b/usr.bin/locate/bigram/locate.bigram.c
@@ -1,5 +1,5 @@
/*
- * $OpenBSD: locate.bigram.c,v 1.8 2003/06/03 02:56:09 millert Exp $
+ * $OpenBSD: locate.bigram.c,v 1.9 2003/07/10 00:06:51 david Exp $
*
* Copyright (c) 1995 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
* Copyright (c) 1989, 1993
@@ -32,7 +32,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: locate.bigram.c,v 1.8 2003/06/03 02:56:09 millert Exp $
+ * $Id: locate.bigram.c,v 1.9 2003/07/10 00:06:51 david Exp $
*/
#ifndef lint
@@ -41,7 +41,7 @@ static char copyright[] =
"@(#) Copyright (c) 1989, 1993\n\
The Regents of the University of California. All rights reserved.\n";
#else
-static char rcsid[] = "$OpenBSD: locate.bigram.c,v 1.8 2003/06/03 02:56:09 millert Exp $";
+static char rcsid[] = "$OpenBSD: locate.bigram.c,v 1.9 2003/07/10 00:06:51 david Exp $";
#endif
#endif /* not lint */
@@ -58,6 +58,7 @@ static char sccsid[] = "@(#)locate.bigram.c 8.1 (Berkeley) 6/6/93";
*/
#include <stdio.h>
+#include <stdlib.h>
#include <sys/param.h> /* for MAXPATHLEN */
#include "locate.h"
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c
index 5733497e1aa..d1a1b6b73f8 100644
--- a/usr.bin/netstat/if.c
+++ b/usr.bin/netstat/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.35 2003/06/03 02:56:13 millert Exp $ */
+/* $OpenBSD: if.c,v 1.36 2003/07/10 00:06:51 david Exp $ */
/* $NetBSD: if.c,v 1.16.4.2 1996/06/07 21:46:46 thorpej Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94";
#else
-static char *rcsid = "$OpenBSD: if.c,v 1.35 2003/06/03 02:56:13 millert Exp $";
+static char *rcsid = "$OpenBSD: if.c,v 1.36 2003/07/10 00:06:51 david Exp $";
#endif
#endif /* not lint */
@@ -59,6 +59,7 @@ static char *rcsid = "$OpenBSD: if.c,v 1.35 2003/06/03 02:56:13 millert Exp $";
#include <limits.h>
#include <signal.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
diff --git a/usr.bin/passwd/passwd.c b/usr.bin/passwd/passwd.c
index e45273795c2..ecfe2886c9c 100644
--- a/usr.bin/passwd/passwd.c
+++ b/usr.bin/passwd/passwd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: passwd.c,v 1.16 2003/06/03 02:56:14 millert Exp $ */
+/* $OpenBSD: passwd.c,v 1.17 2003/07/10 00:06:51 david Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@@ -37,10 +37,11 @@ char copyright[] =
#ifndef lint
/*static const char sccsid[] = "from: @(#)passwd.c 5.5 (Berkeley) 7/6/91";*/
-static const char rcsid[] = "$OpenBSD: passwd.c,v 1.16 2003/06/03 02:56:14 millert Exp $";
+static const char rcsid[] = "$OpenBSD: passwd.c,v 1.17 2003/07/10 00:06:51 david Exp $";
#endif /* not lint */
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <err.h>
diff --git a/usr.bin/paste/paste.c b/usr.bin/paste/paste.c
index 202ef138699..0437fe13234 100644
--- a/usr.bin/paste/paste.c
+++ b/usr.bin/paste/paste.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: paste.c,v 1.12 2003/06/10 22:20:49 deraadt Exp $ */
+/* $OpenBSD: paste.c,v 1.13 2003/07/10 00:06:51 david Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@@ -40,10 +40,11 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)paste.c 5.7 (Berkeley) 10/30/90";*/
-static char rcsid[] = "$OpenBSD: paste.c,v 1.12 2003/06/10 22:20:49 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: paste.c,v 1.13 2003/07/10 00:06:51 david Exp $";
#endif /* not lint */
#include <sys/types.h>
+#include <err.h>
#include <errno.h>
#include <limits.h>
#include <stdio.h>
diff --git a/usr.bin/pmdb/arch/i386/i386.c b/usr.bin/pmdb/arch/i386/i386.c
index bb8056c0651..e621ddcccab 100644
--- a/usr.bin/pmdb/arch/i386/i386.c
+++ b/usr.bin/pmdb/arch/i386/i386.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i386.c,v 1.4 2002/07/22 01:20:50 art Exp $ */
+/* $OpenBSD: i386.c,v 1.5 2003/07/10 00:06:51 david Exp $ */
/*
* Copyright (c) 2002 Federico Schwindt <fgsch@openbsd.org>
* All rights reserved.
@@ -28,6 +28,7 @@
#include <sys/ptrace.h>
#include <machine/reg.h>
#include <machine/frame.h>
+#include <string.h>
#include "pmdb.h"
/*
diff --git a/usr.bin/renice/renice.c b/usr.bin/renice/renice.c
index b0c5c24b943..755a776b19e 100644
--- a/usr.bin/renice/renice.c
+++ b/usr.bin/renice/renice.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: renice.c,v 1.10 2003/06/10 22:20:50 deraadt Exp $ */
+/* $OpenBSD: renice.c,v 1.11 2003/07/10 00:06:51 david Exp $ */
/*
* Copyright (c) 1983, 1989, 1993
@@ -39,7 +39,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)renice.c 8.1 (Berkeley) 6/9/93";
#else
-static char rcsid[] = "$OpenBSD: renice.c,v 1.10 2003/06/10 22:20:50 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: renice.c,v 1.11 2003/07/10 00:06:51 david Exp $";
#endif
#endif /* not lint */
@@ -49,6 +49,7 @@ static char rcsid[] = "$OpenBSD: renice.c,v 1.10 2003/06/10 22:20:50 deraadt Exp
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <pwd.h>
#include <err.h>
#include <errno.h>
diff --git a/usr.bin/rpcgen/rpc_hout.c b/usr.bin/rpcgen/rpc_hout.c
index caa694540aa..f45f833dbd7 100644
--- a/usr.bin/rpcgen/rpc_hout.c
+++ b/usr.bin/rpcgen/rpc_hout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rpc_hout.c,v 1.14 2003/06/25 16:04:45 deraadt Exp $ */
+/* $OpenBSD: rpc_hout.c,v 1.15 2003/07/10 00:06:51 david Exp $ */
/* $NetBSD: rpc_hout.c,v 1.4 1995/06/11 21:49:55 pk Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -39,6 +39,7 @@ static char sccsid[] = "@(#)rpc_hout.c 1.12 89/02/22 (C) 1987 SMI";
*/
#include <sys/cdefs.h>
#include <stdio.h>
+#include <stdlib.h>
#include <ctype.h>
#include "rpc_parse.h"
#include "rpc_util.h"
diff --git a/usr.bin/sup/src/scan.c b/usr.bin/sup/src/scan.c
index cd3ee249e7a..377dbd1b954 100644
--- a/usr.bin/sup/src/scan.c
+++ b/usr.bin/sup/src/scan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scan.c,v 1.14 2003/04/30 21:34:47 vincent Exp $ */
+/* $OpenBSD: scan.c,v 1.15 2003/07/10 00:06:51 david Exp $ */
/*
* Copyright (c) 1992 Carnegie Mellon University
@@ -85,6 +85,7 @@
#include <libc.h>
#include <c.h>
+#include <stdlib.h>
#include <vis.h>
#include <sys/types.h>
#include <sys/param.h>
diff --git a/usr.bin/systat/keyboard.c b/usr.bin/systat/keyboard.c
index 724337a315e..5117a7ac1cb 100644
--- a/usr.bin/systat/keyboard.c
+++ b/usr.bin/systat/keyboard.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: keyboard.c,v 1.13 2003/06/03 02:56:17 millert Exp $ */
+/* $OpenBSD: keyboard.c,v 1.14 2003/07/10 00:06:51 david Exp $ */
/* $NetBSD: keyboard.c,v 1.2 1995/01/20 08:51:59 jtc Exp $ */
/*-
@@ -34,11 +34,12 @@
#if 0
static char sccsid[] = "@(#)keyboard.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: keyboard.c,v 1.13 2003/06/03 02:56:17 millert Exp $";
+static char rcsid[] = "$OpenBSD: keyboard.c,v 1.14 2003/07/10 00:06:51 david Exp $";
#endif /* not lint */
#include <ctype.h>
#include <signal.h>
+#include <stdlib.h>
#include <termios.h>
#include <errno.h>
diff --git a/usr.bin/talk/get_names.c b/usr.bin/talk/get_names.c
index 26f64b4b784..56be44c5c6f 100644
--- a/usr.bin/talk/get_names.c
+++ b/usr.bin/talk/get_names.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: get_names.c,v 1.12 2003/06/03 02:56:17 millert Exp $ */
+/* $OpenBSD: get_names.c,v 1.13 2003/07/10 00:06:51 david Exp $ */
/* $NetBSD: get_names.c,v 1.4 1994/12/09 02:14:16 jtc Exp $ */
/*
@@ -34,12 +34,13 @@
#if 0
static char sccsid[] = "@(#)get_names.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: get_names.c,v 1.12 2003/06/03 02:56:17 millert Exp $";
+static char rcsid[] = "$OpenBSD: get_names.c,v 1.13 2003/07/10 00:06:51 david Exp $";
#endif /* not lint */
#include "talk.h"
#include <sys/param.h>
#include <pwd.h>
+#include <stdlib.h>
#include <unistd.h>
extern CTL_MSG msg;
diff --git a/usr.bin/talk/init_disp.c b/usr.bin/talk/init_disp.c
index 194ad0fba71..f31dc76362e 100644
--- a/usr.bin/talk/init_disp.c
+++ b/usr.bin/talk/init_disp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_disp.c,v 1.17 2003/06/10 22:20:52 deraadt Exp $ */
+/* $OpenBSD: init_disp.c,v 1.18 2003/07/10 00:06:51 david Exp $ */
/* $NetBSD: init_disp.c,v 1.6 1994/12/09 02:14:17 jtc Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)init_disp.c 8.2 (Berkeley) 2/16/94";
#endif
-static char rcsid[] = "$OpenBSD: init_disp.c,v 1.17 2003/06/10 22:20:52 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: init_disp.c,v 1.18 2003/07/10 00:06:51 david Exp $";
#endif /* not lint */
/*
@@ -46,6 +46,7 @@ static char rcsid[] = "$OpenBSD: init_disp.c,v 1.17 2003/06/10 22:20:52 deraadt
#include <sys/ioctl.h>
#include <sys/ioctl_compat.h>
#include <err.h>
+#include <stdlib.h>
#include <termios.h>
#include <unistd.h>
diff --git a/usr.bin/tn3270/ascii/mset.c b/usr.bin/tn3270/ascii/mset.c
index 176992348dd..723a32150db 100644
--- a/usr.bin/tn3270/ascii/mset.c
+++ b/usr.bin/tn3270/ascii/mset.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mset.c,v 1.5 2003/06/03 02:56:19 millert Exp $ */
+/* $OpenBSD: mset.c,v 1.6 2003/07/10 00:06:51 david Exp $ */
/*-
* Copyright (c) 1988 The Regents of the University of California.
@@ -37,7 +37,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)mset.c 4.2 (Berkeley) 4/26/91";*/
-static char rcsid[] = "$OpenBSD: mset.c,v 1.5 2003/06/03 02:56:19 millert Exp $";
+static char rcsid[] = "$OpenBSD: mset.c,v 1.6 2003/07/10 00:06:51 david Exp $";
#endif /* not lint */
/*
@@ -48,6 +48,7 @@ static char rcsid[] = "$OpenBSD: mset.c,v 1.5 2003/06/03 02:56:19 millert Exp $"
*/
#include <stdio.h>
+#include <stdlib.h>
#if defined(unix)
#include <strings.h>
#else /* defined(unix) */
diff --git a/usr.bin/tn3270/sys_curses/system.c b/usr.bin/tn3270/sys_curses/system.c
index b85dcdf5fb9..5b5a89291ca 100644
--- a/usr.bin/tn3270/sys_curses/system.c
+++ b/usr.bin/tn3270/sys_curses/system.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: system.c,v 1.14 2003/06/03 02:56:19 millert Exp $ */
+/* $OpenBSD: system.c,v 1.15 2003/07/10 00:06:51 david Exp $ */
/*-
* Copyright (c) 1988 The Regents of the University of California.
@@ -31,7 +31,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)system.c 4.5 (Berkeley) 4/26/91";*/
-static char rcsid[] = "$OpenBSD: system.c,v 1.14 2003/06/03 02:56:19 millert Exp $";
+static char rcsid[] = "$OpenBSD: system.c,v 1.15 2003/07/10 00:06:51 david Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -61,6 +61,7 @@ static char rcsid[] = "$OpenBSD: system.c,v 1.14 2003/06/03 02:56:19 millert Exp
#include <stdlib.h>
#include <string.h>
#include <pwd.h>
+#include <unistd.h>
#include "../general/general.h"
#include "../ctlr/api.h"
diff --git a/usr.bin/uname/uname.c b/usr.bin/uname/uname.c
index 304d77af606..bed785a6b36 100644
--- a/usr.bin/uname/uname.c
+++ b/usr.bin/uname/uname.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uname.c,v 1.7 2003/07/02 20:23:15 deraadt Exp $ */
+/* $OpenBSD: uname.c,v 1.8 2003/07/10 00:06:51 david Exp $ */
/*
* Copyright (c) 1994 Winning Strategies, Inc.
@@ -32,11 +32,12 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: uname.c,v 1.7 2003/07/02 20:23:15 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: uname.c,v 1.8 2003/07/10 00:06:51 david Exp $";
#endif /* not lint */
#include <sys/param.h>
#include <stdio.h>
+#include <stdlib.h>
#include <locale.h>
#include <unistd.h>
#include <sys/utsname.h>
diff --git a/usr.bin/unexpand/unexpand.c b/usr.bin/unexpand/unexpand.c
index fbd15dbcedb..a24be37ae81 100644
--- a/usr.bin/unexpand/unexpand.c
+++ b/usr.bin/unexpand/unexpand.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: unexpand.c,v 1.8 2003/06/10 22:20:53 deraadt Exp $ */
+/* $OpenBSD: unexpand.c,v 1.9 2003/07/10 00:06:51 david Exp $ */
/* $NetBSD: unexpand.c,v 1.5 1994/12/24 17:08:05 cgd Exp $ */
/*-
@@ -40,13 +40,14 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)unexpand.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: unexpand.c,v 1.8 2003/06/10 22:20:53 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: unexpand.c,v 1.9 2003/07/10 00:06:51 david Exp $";
#endif /* not lint */
/*
* unexpand - put tabs into a file replacing blanks
*/
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
char genbuf[BUFSIZ];
diff --git a/usr.bin/uudecode/uudecode.c b/usr.bin/uudecode/uudecode.c
index a1ece266f25..25bf304f4f6 100644
--- a/usr.bin/uudecode/uudecode.c
+++ b/usr.bin/uudecode/uudecode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uudecode.c,v 1.11 2003/06/10 22:20:53 deraadt Exp $ */
+/* $OpenBSD: uudecode.c,v 1.12 2003/07/10 00:06:51 david Exp $ */
/* $NetBSD: uudecode.c,v 1.6 1994/11/17 07:40:43 jtc Exp $ */
/*-
@@ -38,7 +38,7 @@ char copyright[] =
#if 0
static char sccsid[] = "@(#)uudecode.c 8.2 (Berkeley) 4/2/94";
#endif
-static char rcsid[] = "$OpenBSD: uudecode.c,v 1.11 2003/06/10 22:20:53 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: uudecode.c,v 1.12 2003/07/10 00:06:51 david Exp $";
#endif /* not lint */
/*
@@ -51,6 +51,7 @@ static char rcsid[] = "$OpenBSD: uudecode.c,v 1.11 2003/06/10 22:20:53 deraadt E
* security at all.
*/
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <locale.h>
#include <errno.h>
diff --git a/usr.bin/what/what.c b/usr.bin/what/what.c
index f2c624f29bf..a429cbe6ccc 100644
--- a/usr.bin/what/what.c
+++ b/usr.bin/what/what.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: what.c,v 1.10 2003/06/10 22:20:54 deraadt Exp $ */
+/* $OpenBSD: what.c,v 1.11 2003/07/10 00:06:52 david Exp $ */
/* $NetBSD: what.c,v 1.4 1994/12/20 16:01:03 jtc Exp $ */
/*
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)what.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: what.c,v 1.10 2003/06/10 22:20:54 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: what.c,v 1.11 2003/07/10 00:06:52 david Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -48,6 +48,7 @@ static char rcsid[] = "$OpenBSD: what.c,v 1.10 2003/06/10 22:20:54 deraadt Exp $
#include <stdio.h>
#include <ctype.h>
#include <err.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
diff --git a/usr.bin/window/compress.c b/usr.bin/window/compress.c
index 49e34e3d06a..059909bf107 100644
--- a/usr.bin/window/compress.c
+++ b/usr.bin/window/compress.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: compress.c,v 1.6 2003/06/03 02:56:23 millert Exp $ */
+/* $OpenBSD: compress.c,v 1.7 2003/07/10 00:06:52 david Exp $ */
/* $NetBSD: compress.c,v 1.3 1995/09/28 10:34:13 tls Exp $ */
/*
@@ -37,11 +37,12 @@
#if 0
static char sccsid[] = "@(#)compress.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: compress.c,v 1.6 2003/06/03 02:56:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: compress.c,v 1.7 2003/07/10 00:06:52 david Exp $";
#endif
#endif /* not lint */
#include <stdlib.h>
+#include <string.h>
#include "ww.h"
#include "tt.h"
diff --git a/usr.bin/window/var.c b/usr.bin/window/var.c
index 0a48614c9ee..fc6ddab52a5 100644
--- a/usr.bin/window/var.c
+++ b/usr.bin/window/var.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: var.c,v 1.5 2003/06/03 02:56:23 millert Exp $ */
+/* $OpenBSD: var.c,v 1.6 2003/07/10 00:06:52 david Exp $ */
/* $NetBSD: var.c,v 1.4 1995/09/28 10:35:01 tls Exp $ */
/*
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)var.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: var.c,v 1.5 2003/06/03 02:56:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: var.c,v 1.6 2003/07/10 00:06:52 david Exp $";
#endif
#endif /* not lint */
@@ -45,6 +45,7 @@ static char rcsid[] = "$OpenBSD: var.c,v 1.5 2003/06/03 02:56:23 millert Exp $";
#include "var.h"
#include "string.h"
#include <stdlib.h>
+#include <string.h>
struct var *
var_set1(head, name, v)
diff --git a/usr.bin/window/wwclose.c b/usr.bin/window/wwclose.c
index 6221eb04c3b..2b7dc8efb3b 100644
--- a/usr.bin/window/wwclose.c
+++ b/usr.bin/window/wwclose.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wwclose.c,v 1.5 2003/06/03 02:56:23 millert Exp $ */
+/* $OpenBSD: wwclose.c,v 1.6 2003/07/10 00:06:52 david Exp $ */
/* $NetBSD: wwclose.c,v 1.3 1995/09/28 10:35:14 tls Exp $ */
/*
@@ -37,10 +37,12 @@
#if 0
static char sccsid[] = "@(#)wwclose.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwclose.c,v 1.5 2003/06/03 02:56:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: wwclose.c,v 1.6 2003/07/10 00:06:52 david Exp $";
#endif
#endif /* not lint */
+#include <unistd.h>
+
#include "ww.h"
wwclose(w)
diff --git a/usr.bin/window/wwend.c b/usr.bin/window/wwend.c
index 245ea6d23a9..491a5077a9a 100644
--- a/usr.bin/window/wwend.c
+++ b/usr.bin/window/wwend.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wwend.c,v 1.4 2003/06/03 02:56:23 millert Exp $ */
+/* $OpenBSD: wwend.c,v 1.5 2003/07/10 00:06:52 david Exp $ */
/* $NetBSD: wwend.c,v 1.3 1995/09/28 10:35:26 tls Exp $ */
/*
@@ -37,10 +37,12 @@
#if 0
static char sccsid[] = "@(#)wwend.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwend.c,v 1.4 2003/06/03 02:56:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: wwend.c,v 1.5 2003/07/10 00:06:52 david Exp $";
#endif
#endif /* not lint */
+#include <stdlib.h>
+
#include "ww.h"
#include "tt.h"
diff --git a/usr.bin/window/wwenviron.c b/usr.bin/window/wwenviron.c
index b510259aff8..978b25072d4 100644
--- a/usr.bin/window/wwenviron.c
+++ b/usr.bin/window/wwenviron.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wwenviron.c,v 1.8 2003/06/03 02:56:23 millert Exp $ */
+/* $OpenBSD: wwenviron.c,v 1.9 2003/07/10 00:06:52 david Exp $ */
/* $NetBSD: wwenviron.c,v 1.4 1995/12/21 08:39:50 mycroft Exp $ */
/*
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)wwenviron.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwenviron.c,v 1.8 2003/06/03 02:56:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: wwenviron.c,v 1.9 2003/07/10 00:06:52 david Exp $";
#endif
#endif /* not lint */
@@ -46,6 +46,8 @@ static char rcsid[] = "$OpenBSD: wwenviron.c,v 1.8 2003/06/03 02:56:23 millert E
#include <sys/ioctl.h>
#endif
#include <sys/signal.h>
+#include <signal.h>
+#include <stdio.h>
/*
* Set up the environment of this process to run in window 'wp'.
diff --git a/usr.bin/window/wwflush.c b/usr.bin/window/wwflush.c
index cb09c6b88e0..db4a040ad6a 100644
--- a/usr.bin/window/wwflush.c
+++ b/usr.bin/window/wwflush.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wwflush.c,v 1.6 2003/06/03 02:56:23 millert Exp $ */
+/* $OpenBSD: wwflush.c,v 1.7 2003/07/10 00:06:52 david Exp $ */
/* $NetBSD: wwflush.c,v 1.5 1995/12/21 10:46:08 mycroft Exp $ */
/*
@@ -37,13 +37,15 @@
#if 0
static char sccsid[] = "@(#)wwflush.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwflush.c,v 1.6 2003/06/03 02:56:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: wwflush.c,v 1.7 2003/07/10 00:06:52 david Exp $";
#endif
#endif /* not lint */
#include "ww.h"
#include "tt.h"
#include <sys/signal.h>
+#include <string.h>
+#include <unistd.h>
wwflush()
{
diff --git a/usr.bin/window/wwiomux.c b/usr.bin/window/wwiomux.c
index 8257071028b..9b8ba1ab0d5 100644
--- a/usr.bin/window/wwiomux.c
+++ b/usr.bin/window/wwiomux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wwiomux.c,v 1.8 2003/06/03 02:56:23 millert Exp $ */
+/* $OpenBSD: wwiomux.c,v 1.9 2003/07/10 00:06:52 david Exp $ */
/* $NetBSD: wwiomux.c,v 1.5 1996/02/08 20:45:09 mycroft Exp $ */
/*
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)wwiomux.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwiomux.c,v 1.8 2003/06/03 02:56:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: wwiomux.c,v 1.9 2003/07/10 00:06:52 david Exp $";
#endif
#endif /* not lint */
@@ -49,6 +49,7 @@ static char rcsid[] = "$OpenBSD: wwiomux.c,v 1.8 2003/06/03 02:56:23 millert Exp
#endif
#include <fcntl.h>
#include <string.h>
+#include <unistd.h>
/*
* Multiple window output handler.
diff --git a/usr.bin/window/wwopen.c b/usr.bin/window/wwopen.c
index ded2d436ebd..804da4a96c0 100644
--- a/usr.bin/window/wwopen.c
+++ b/usr.bin/window/wwopen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wwopen.c,v 1.9 2003/06/03 02:56:23 millert Exp $ */
+/* $OpenBSD: wwopen.c,v 1.10 2003/07/10 00:06:52 david Exp $ */
/* $NetBSD: wwopen.c,v 1.6 1996/02/08 21:08:04 mycroft Exp $ */
/*
@@ -37,11 +37,12 @@
#if 0
static char sccsid[] = "@(#)wwopen.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: wwopen.c,v 1.9 2003/06/03 02:56:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: wwopen.c,v 1.10 2003/07/10 00:06:52 david Exp $";
#endif
#endif /* not lint */
#include <stdlib.h>
+#include <unistd.h>
#include "ww.h"
#include <sys/types.h>
#include <sys/socket.h>
diff --git a/usr.bin/window/wwscroll.c b/usr.bin/window/wwscroll.c
index 2ccda7e461b..6700ea826b6 100644
--- a/usr.bin/window/wwscroll.c
+++ b/usr.bin/window/wwscroll.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wwscroll.c,v 1.5 2003/06/03 02:56:23 millert Exp $ */
+/* $OpenBSD: wwscroll.c,v 1.6 2003/07/10 00:06:52 david Exp $ */
/* $NetBSD: wwscroll.c,v 1.3 1995/09/28 10:35:53 tls Exp $ */
/*
@@ -37,10 +37,12 @@
#if 0
static char sccsid[] = "@(#)wwscroll.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwscroll.c,v 1.5 2003/06/03 02:56:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: wwscroll.c,v 1.6 2003/07/10 00:06:52 david Exp $";
#endif
#endif /* not lint */
+#include <stdlib.h>
+
#include "ww.h"
#include "tt.h"
diff --git a/usr.bin/window/wwspawn.c b/usr.bin/window/wwspawn.c
index e0d94f338b4..a57da5ee0cd 100644
--- a/usr.bin/window/wwspawn.c
+++ b/usr.bin/window/wwspawn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wwspawn.c,v 1.8 2003/06/03 02:56:23 millert Exp $ */
+/* $OpenBSD: wwspawn.c,v 1.9 2003/07/10 00:06:52 david Exp $ */
/* $NetBSD: wwspawn.c,v 1.4 1995/12/21 08:39:57 mycroft Exp $ */
/*
@@ -37,12 +37,13 @@
#if 0
static char sccsid[] = "@(#)wwspawn.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwspawn.c,v 1.8 2003/06/03 02:56:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: wwspawn.c,v 1.9 2003/07/10 00:06:52 david Exp $";
#endif
#endif /* not lint */
#include "ww.h"
#include <sys/signal.h>
+#include <unistd.h>
/*
* There is a dead lock with vfork and closing of pseudo-ports.
diff --git a/usr.bin/window/wwsuspend.c b/usr.bin/window/wwsuspend.c
index b9726c0ea3e..61f4ed46c3e 100644
--- a/usr.bin/window/wwsuspend.c
+++ b/usr.bin/window/wwsuspend.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wwsuspend.c,v 1.4 2003/06/03 02:56:23 millert Exp $ */
+/* $OpenBSD: wwsuspend.c,v 1.5 2003/07/10 00:06:52 david Exp $ */
/* $NetBSD: wwsuspend.c,v 1.3 1995/09/28 10:35:56 tls Exp $ */
/*
@@ -37,13 +37,14 @@
#if 0
static char sccsid[] = "@(#)wwsuspend.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwsuspend.c,v 1.4 2003/06/03 02:56:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: wwsuspend.c,v 1.5 2003/07/10 00:06:52 david Exp $";
#endif
#endif /* not lint */
#include "ww.h"
#include "tt.h"
#include <sys/signal.h>
+#include <signal.h>
wwsuspend()
{
diff --git a/usr.bin/write/write.c b/usr.bin/write/write.c
index 1a116913590..70c4b8e434a 100644
--- a/usr.bin/write/write.c
+++ b/usr.bin/write/write.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: write.c,v 1.21 2003/06/10 22:20:54 deraadt Exp $ */
+/* $OpenBSD: write.c,v 1.22 2003/07/10 00:06:52 david Exp $ */
/* $NetBSD: write.c,v 1.5 1995/08/31 21:48:32 jtc Exp $ */
/*
@@ -43,13 +43,14 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)write.c 8.2 (Berkeley) 4/27/95";
#endif
-static char *rcsid = "$OpenBSD: write.c,v 1.21 2003/06/10 22:20:54 deraadt Exp $";
+static char *rcsid = "$OpenBSD: write.c,v 1.22 2003/07/10 00:06:52 david Exp $";
#endif /* not lint */
#include <sys/param.h>
#include <sys/stat.h>
#include <ctype.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <time.h>
diff --git a/usr.bin/ypcat/ypcat.c b/usr.bin/ypcat/ypcat.c
index 80294f8248d..0e1d1057f67 100644
--- a/usr.bin/ypcat/ypcat.c
+++ b/usr.bin/ypcat/ypcat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypcat.c,v 1.10 2003/07/02 21:04:10 deraadt Exp $ */
+/* $OpenBSD: ypcat.c,v 1.11 2003/07/10 00:06:52 david Exp $ */
/*
* Copyright (c) 1992, 1993, 1996 Theo de Raadt <deraadt@theos.com>
@@ -27,7 +27,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: ypcat.c,v 1.10 2003/07/02 21:04:10 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ypcat.c,v 1.11 2003/07/10 00:06:52 david Exp $";
#endif
#include <sys/param.h>
@@ -36,6 +36,7 @@ static char rcsid[] = "$OpenBSD: ypcat.c,v 1.10 2003/07/02 21:04:10 deraadt Exp
#include <unistd.h>
#include <string.h>
#include <stdio.h>
+#include <stdlib.h>
#include <ctype.h>
#include <rpc/rpc.h>
diff --git a/usr.bin/ypmatch/ypmatch.c b/usr.bin/ypmatch/ypmatch.c
index 1c962ffe5f5..55e83133ebe 100644
--- a/usr.bin/ypmatch/ypmatch.c
+++ b/usr.bin/ypmatch/ypmatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypmatch.c,v 1.10 2003/07/02 21:04:10 deraadt Exp $ */
+/* $OpenBSD: ypmatch.c,v 1.11 2003/07/10 00:06:52 david Exp $ */
/* $NetBSD: ypmatch.c,v 1.8 1996/05/07 01:24:52 jtc Exp $ */
/*
@@ -28,13 +28,14 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: ypmatch.c,v 1.10 2003/07/02 21:04:10 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ypmatch.c,v 1.11 2003/07/10 00:06:52 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 <ctype.h>