More #include <stdlib.h> string, etc. cleanup

This commit is contained in:
matt 2000-07-04 20:27:35 +00:00
parent 6851dd879b
commit 3ab02a8704
21 changed files with 51 additions and 33 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: xutil.c,v 1.5 2000/01/15 15:51:54 bouyer Exp $ */
/* $NetBSD: xutil.c,v 1.6 2000/07/04 20:27:35 matt Exp $ */
/*
* Copyright (c) 1997-1999 Erez Zadok
@ -285,7 +285,9 @@ checkup_mem(void)
static void
expand_error(char *f, char *e, int maxlen)
{
#ifndef HAVE_STRERROR
extern int sys_nerr;
#endif
char *p, *q;
int error = errno;
int len = 0;

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 1999/11/28 16:58:16 veego Exp $
# $NetBSD: Makefile,v 1.9 2000/07/04 20:27:36 matt Exp $
.include "../Makefile.inc"
.PATH: ${BIND_DIST_DIR}/bin/named \
@ -14,7 +14,7 @@ SRCS= db_dump.c db_load.c db_lookup.c db_save.c db_update.c \
ns_resp.c ns_stats.c ns_ncache.c ns_xfr.c ns_glue.c \
ns_udp.c ns_config.c ns_update.c ns_ixfr.c ns_signal.c \
ns_sort.c ns_notify.c tmp_version.c
CPPFLAGS+= ${INCLUDE}
CPPFLAGS+= ${INCLUDE} -I${BIND_DIST_DIR}/bin/named
LDADD= ${LIBRARY}
CLEANFILES+= y.tab.h named-bootconf tmp_version.c pathnames.h
MAN= ${PROG}.8 named.conf.5

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 1999/11/20 19:48:00 veego Exp $
# $NetBSD: Makefile,v 1.6 2000/07/04 20:27:36 matt Exp $
.include "../Makefile.inc"
.PATH: ${BIND_DIST_DIR}/bin/nslookup \
@ -7,7 +7,7 @@
BINDIR= /usr/bin
PROG= nslookup
SRCS= main.c getinfo.c debug.c send.c skip.c list.c subr.c commands.l
CPPFLAGS+= ${INCLUDE}
CPPFLAGS+= ${INCLUDE} -I${BIND_DIST_DIR}/bin/nslookup
DPADD= ${LIBL}
LDADD= -ll ${LIBRARY}
MAN= ${PROG}.8

View File

@ -1,4 +1,4 @@
/* $NetBSD: gsp_act.c,v 1.2 1997/10/17 06:58:47 lukem Exp $ */
/* $NetBSD: gsp_act.c,v 1.3 2000/07/04 20:27:37 matt Exp $ */
/*
* GSP assembler - semantic actions
*
@ -33,10 +33,11 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: gsp_act.c,v 1.2 1997/10/17 06:58:47 lukem Exp $");
__RCSID("$NetBSD: gsp_act.c,v 1.3 2000/07/04 20:27:37 matt Exp $");
#endif
#include <stdlib.h>
#include <string.h>
#include "gsp_ass.h"
void

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.13 2000/05/03 11:40:56 veego Exp $
# $NetBSD: Makefile,v 1.14 2000/07/04 20:27:37 matt Exp $
PROG= ipsend
SRCS= ipsend.c ip.c ipsopt.c iplang_l.l iplang_y.y sbpf.c sock.c 44arp.c
@ -6,7 +6,9 @@ YHEADER=1
LDADD= -ll
DPADD= ${LIBL}
CPPFLAGS+=-I${.CURDIR}/../../../dist/ipf -I${.CURDIR}/../../../dist/ipf/ipsend -I.
CPPFLAGS+= -I. -I${.CURDIR}/../../../dist/ipf \
-I${.CURDIR}/../../../dist/ipf/ipsend \
-I${.CURDIR}/../../../dist/ipf/iplang
MAN= ipsend.1 ipsend.5

View File

@ -1,4 +1,4 @@
/* $NetBSD: lastlogin.c,v 1.4 1998/02/03 04:45:35 perry Exp $ */
/* $NetBSD: lastlogin.c,v 1.5 2000/07/04 20:27:37 matt Exp $ */
/*
* Copyright (c) 1996 John M. Vinopal
* All rights reserved.
@ -33,7 +33,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: lastlogin.c,v 1.4 1998/02/03 04:45:35 perry Exp $");
__RCSID("$NetBSD: lastlogin.c,v 1.5 2000/07/04 20:27:37 matt Exp $");
#endif
#include <sys/types.h>
@ -41,6 +41,7 @@ __RCSID("$NetBSD: lastlogin.c,v 1.4 1998/02/03 04:45:35 perry Exp $");
#include <errno.h>
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <utmp.h>
#include <unistd.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: fatal.c,v 1.1 1999/12/05 22:10:57 jdolecek Exp $ */
/* $NetBSD: fatal.c,v 1.2 2000/07/04 20:27:37 matt Exp $ */
/*
* Copyright (c) 1983, 1993
@ -40,12 +40,13 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: fatal.c,v 1.1 1999/12/05 22:10:57 jdolecek Exp $");
__RCSID("$NetBSD: fatal.c,v 1.2 2000/07/04 20:27:37 matt Exp $");
#endif /* not lint */
#include <sys/param.h>
#include <sys/dirent.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef __STDC__
#include <stdarg.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 1999/06/06 03:27:06 thorpej Exp $
# $NetBSD: Makefile,v 1.10 2000/07/04 20:27:38 matt Exp $
# from: Id: Makefile,v 1.5 1993/06/24 05:11:16 deering Exp
PROG= mrouted
@ -8,5 +8,6 @@ MAN= mrouted.8
LDADD+= -lutil
DPADD+= ${LIBUTIL}
CPPFLAGS+=-I${.CURDIR}
.include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
/* $NetBSD: ndp.c,v 1.9 2000/06/20 22:23:02 itojun Exp $ */
/* $NetBSD: ndp.c,v 1.10 2000/07/04 20:27:38 matt Exp $ */
/* $KAME: ndp.c,v 1.40 2000/06/20 21:50:17 itojun Exp $ */
/*
@ -551,7 +551,6 @@ dump(addr)
struct rt_msghdr *rtm;
struct sockaddr_in6 *sin;
struct sockaddr_dl *sdl;
extern int h_errno;
struct in6_nbrinfo *nbi;
struct timeval time;
int addrwidth;

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2000/02/26 18:32:00 mycroft Exp $
# $NetBSD: Makefile,v 1.4 2000/07/04 20:27:38 matt Exp $
PROG= pim6sd
SRCS= mld6.c mld6_proto.c \
@ -6,7 +6,7 @@ SRCS= mld6.c mld6_proto.c \
route.c vif.c timer.c mrt.c pim6.c pim6_proto.c rp.c crc.c trace.c \
cfparse.y cftoken.l
CFLAGS+= -g
CPPFLAGS+=-I.
CPPFLAGS+=-I. -I${.CURDIR}
CPPFLAGS+=-DINET6 -DPIM -DIOCTL_OK_ON_RAW_SOCKET
CPPFLAGS+=-DHAVE_STDARG_H -DYY_NO_UNPUT -DHAVE_GETIFADDRS
LDADD+=-ly -ll

View File

@ -1,4 +1,4 @@
/* $NetBSD: debug.c,v 1.4 2000/05/19 10:43:47 itojun Exp $ */
/* $NetBSD: debug.c,v 1.5 2000/07/04 20:27:38 matt Exp $ */
/*
* Copyright (c) 1998 by the University of Southern California.
@ -59,6 +59,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <syslog.h>
#include <sys/param.h>
#include <sys/types.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: ipv6cp.c,v 1.6 2000/04/17 08:55:33 itojun Exp $ */
/* $NetBSD: ipv6cp.c,v 1.7 2000/07/04 20:27:39 matt Exp $ */
/*
* ipv6cp.c - PPP IPV6 Control Protocol.
@ -35,7 +35,7 @@
#if 0
#define RCSID "Id: ipv6cp.c,v 1.3 1999/08/24 05:31:09 paulus Exp "
#else
__RCSID("$NetBSD: ipv6cp.c,v 1.6 2000/04/17 08:55:33 itojun Exp $");
__RCSID("$NetBSD: ipv6cp.c,v 1.7 2000/07/04 20:27:39 matt Exp $");
#endif
#endif
@ -48,6 +48,7 @@ __RCSID("$NetBSD: ipv6cp.c,v 1.6 2000/04/17 08:55:33 itojun Exp $");
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <netdb.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: quotaon.c,v 1.13 1998/07/27 00:52:03 mycroft Exp $ */
/* $NetBSD: quotaon.c,v 1.14 2000/07/04 20:27:39 matt Exp $ */
/*
* Copyright (c) 1980, 1990, 1993
@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1990, 1993\n\
#if 0
static char sccsid[] = "@(#)quotaon.c 8.1 (Berkeley) 6/6/93";
#else
__RCSID("$NetBSD: quotaon.c,v 1.13 1998/07/27 00:52:03 mycroft Exp $");
__RCSID("$NetBSD: quotaon.c,v 1.14 2000/07/04 20:27:39 matt Exp $");
#endif
#endif /* not lint */
@ -61,6 +61,7 @@ __RCSID("$NetBSD: quotaon.c,v 1.13 1998/07/27 00:52:03 mycroft Exp $");
#include <err.h>
#include <fstab.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: yppasswdd_mkpw.c,v 1.4 1998/11/06 13:07:18 is Exp $ */
/* $NetBSD: yppasswdd_mkpw.c,v 1.5 2000/07/04 20:27:39 matt Exp $ */
/*
* Copyright (c) 1996 Jason R. Thorpe <thorpej@NetBSD.ORG>
@ -45,6 +45,7 @@
#include <pwd.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <util.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: rpcb_stat.c,v 1.1 2000/06/02 23:15:41 fvdl Exp $ */
/* $NetBSD: rpcb_stat.c,v 1.2 2000/07/04 20:27:40 matt Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@ -46,6 +46,7 @@
#include <rpc/pmap_prot.h>
#endif
#include <stdlib.h>
#include <string.h>
#include "rpcbind.h"
static rpcb_stat_byvers inf;

View File

@ -1,4 +1,4 @@
/* $NetBSD: getencstat.c,v 1.2 2000/02/22 06:06:07 mjacob Exp $ */
/* $NetBSD: getencstat.c,v 1.3 2000/07/04 20:27:40 matt Exp $ */
/* $FreeBSD: $ */
/* $OpenBSD: $ */
/*
@ -35,6 +35,7 @@
*/
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/ioctl.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: wsconscfg.c,v 1.5 1999/11/10 16:34:58 drochner Exp $ */
/* $NetBSD: wsconscfg.c,v 1.6 2000/07/04 20:27:40 matt Exp $ */
/*
* Copyright (c) 1999
@ -33,6 +33,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: wsfontload.c,v 1.3 2000/01/25 01:04:07 ad Exp $ */
/* $NetBSD: wsfontload.c,v 1.4 2000/07/04 20:27:40 matt Exp $ */
/*
* Copyright (c) 1999
@ -34,6 +34,7 @@
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/ioctl.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: yppoll.c,v 1.7 2000/04/14 06:26:55 simonb Exp $ */
/* $NetBSD: yppoll.c,v 1.8 2000/07/04 20:27:41 matt Exp $ */
/*
* Copyright (c) 1992, 1993 Theo de Raadt <deraadt@fsa.ca>
@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: yppoll.c,v 1.7 2000/04/14 06:26:55 simonb Exp $");
__RCSID("$NetBSD: yppoll.c,v 1.8 2000/07/04 20:27:41 matt Exp $");
#endif /* not lint */
#include <sys/param.h>
@ -44,6 +44,7 @@ __RCSID("$NetBSD: yppoll.c,v 1.7 2000/04/14 06:26:55 simonb Exp $");
#include <sys/socket.h>
#include <err.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <netdb.h>
#include <unistd.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: yppush.c,v 1.12 2000/06/03 14:33:18 fvdl Exp $ */
/* $NetBSD: yppush.c,v 1.13 2000/07/04 20:27:41 matt Exp $ */
/*
*
@ -48,6 +48,7 @@
#include <fcntl.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: yptest.c,v 1.3 1997/10/13 07:44:01 lukem Exp $ */
/* $NetBSD: yptest.c,v 1.4 2000/07/04 20:27:41 matt Exp $ */
/*
* Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se>
@ -33,12 +33,13 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: yptest.c,v 1.3 1997/10/13 07:44:01 lukem Exp $");
__RCSID("$NetBSD: yptest.c,v 1.4 2000/07/04 20:27:41 matt Exp $");
#endif
#include <sys/types.h>
#include <err.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>