Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin More #include <stdlib.h> string, etc. cleanup



details:   https://anonhg.NetBSD.org/src/rev/2f20cf85361e
branches:  trunk
changeset: 494270:2f20cf85361e
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Jul 04 20:27:35 2000 +0000

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

diffstat:

 usr.sbin/amd/libamu/xutil.c             |  4 +++-
 usr.sbin/bind/named/Makefile            |  4 ++--
 usr.sbin/bind/nslookup/Makefile         |  4 ++--
 usr.sbin/gspa/gspa/gsp_act.c            |  5 +++--
 usr.sbin/ipf/ipsend/Makefile            |  6 ++++--
 usr.sbin/lastlogin/lastlogin.c          |  5 +++--
 usr.sbin/lpr/common_source/fatal.c      |  5 +++--
 usr.sbin/mrouted/Makefile               |  3 ++-
 usr.sbin/ndp/ndp.c                      |  3 +--
 usr.sbin/pim6sd/Makefile                |  4 ++--
 usr.sbin/pim6sd/debug.c                 |  3 ++-
 usr.sbin/pppd/pppd/ipv6cp.c             |  5 +++--
 usr.sbin/quotaon/quotaon.c              |  5 +++--
 usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c |  3 ++-
 usr.sbin/rpcbind/rpcb_stat.c            |  3 ++-
 usr.sbin/sesd/srcs/getencstat.c         |  3 ++-
 usr.sbin/wsconscfg/wsconscfg.c          |  3 ++-
 usr.sbin/wsfontload/wsfontload.c        |  3 ++-
 usr.sbin/yppoll/yppoll.c                |  5 +++--
 usr.sbin/ypserv/yppush/yppush.c         |  3 ++-
 usr.sbin/ypserv/yptest/yptest.c         |  5 +++--
 21 files changed, 51 insertions(+), 33 deletions(-)

diffs (truncated from 419 to 300 lines):

diff -r 4e243140796d -r 2f20cf85361e usr.sbin/amd/libamu/xutil.c
--- a/usr.sbin/amd/libamu/xutil.c       Tue Jul 04 20:08:32 2000 +0000
+++ b/usr.sbin/amd/libamu/xutil.c       Tue Jul 04 20:27:35 2000 +0000
@@ -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 @@
 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;
diff -r 4e243140796d -r 2f20cf85361e usr.sbin/bind/named/Makefile
--- a/usr.sbin/bind/named/Makefile      Tue Jul 04 20:08:32 2000 +0000
+++ b/usr.sbin/bind/named/Makefile      Tue Jul 04 20:27:35 2000 +0000
@@ -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 @@
                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
diff -r 4e243140796d -r 2f20cf85361e usr.sbin/bind/nslookup/Makefile
--- a/usr.sbin/bind/nslookup/Makefile   Tue Jul 04 20:08:32 2000 +0000
+++ b/usr.sbin/bind/nslookup/Makefile   Tue Jul 04 20:27:35 2000 +0000
@@ -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
diff -r 4e243140796d -r 2f20cf85361e usr.sbin/gspa/gspa/gsp_act.c
--- a/usr.sbin/gspa/gspa/gsp_act.c      Tue Jul 04 20:08:32 2000 +0000
+++ b/usr.sbin/gspa/gspa/gsp_act.c      Tue Jul 04 20:27:35 2000 +0000
@@ -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
diff -r 4e243140796d -r 2f20cf85361e usr.sbin/ipf/ipsend/Makefile
--- a/usr.sbin/ipf/ipsend/Makefile      Tue Jul 04 20:08:32 2000 +0000
+++ b/usr.sbin/ipf/ipsend/Makefile      Tue Jul 04 20:27:35 2000 +0000
@@ -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 @@
 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
 
diff -r 4e243140796d -r 2f20cf85361e usr.sbin/lastlogin/lastlogin.c
--- a/usr.sbin/lastlogin/lastlogin.c    Tue Jul 04 20:08:32 2000 +0000
+++ b/usr.sbin/lastlogin/lastlogin.c    Tue Jul 04 20:27:35 2000 +0000
@@ -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 @@
 #include <errno.h>
 #include <pwd.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <time.h>
 #include <utmp.h>
 #include <unistd.h>
diff -r 4e243140796d -r 2f20cf85361e usr.sbin/lpr/common_source/fatal.c
--- a/usr.sbin/lpr/common_source/fatal.c        Tue Jul 04 20:08:32 2000 +0000
+++ b/usr.sbin/lpr/common_source/fatal.c        Tue Jul 04 20:27:35 2000 +0000
@@ -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>
diff -r 4e243140796d -r 2f20cf85361e usr.sbin/mrouted/Makefile
--- a/usr.sbin/mrouted/Makefile Tue Jul 04 20:08:32 2000 +0000
+++ b/usr.sbin/mrouted/Makefile Tue Jul 04 20:27:35 2000 +0000
@@ -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 @@
 
 LDADD+=        -lutil
 DPADD+=        ${LIBUTIL}
+CPPFLAGS+=-I${.CURDIR}
 
 .include <bsd.prog.mk>
diff -r 4e243140796d -r 2f20cf85361e usr.sbin/ndp/ndp.c
--- a/usr.sbin/ndp/ndp.c        Tue Jul 04 20:08:32 2000 +0000
+++ b/usr.sbin/ndp/ndp.c        Tue Jul 04 20:27:35 2000 +0000
@@ -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 @@
        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;
diff -r 4e243140796d -r 2f20cf85361e usr.sbin/pim6sd/Makefile
--- a/usr.sbin/pim6sd/Makefile  Tue Jul 04 20:08:32 2000 +0000
+++ b/usr.sbin/pim6sd/Makefile  Tue Jul 04 20:27:35 2000 +0000
@@ -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 @@
        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
diff -r 4e243140796d -r 2f20cf85361e usr.sbin/pim6sd/debug.c
--- a/usr.sbin/pim6sd/debug.c   Tue Jul 04 20:08:32 2000 +0000
+++ b/usr.sbin/pim6sd/debug.c   Tue Jul 04 20:27:35 2000 +0000
@@ -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>
diff -r 4e243140796d -r 2f20cf85361e usr.sbin/pppd/pppd/ipv6cp.c
--- a/usr.sbin/pppd/pppd/ipv6cp.c       Tue Jul 04 20:08:32 2000 +0000
+++ b/usr.sbin/pppd/pppd/ipv6cp.c       Tue Jul 04 20:27:35 2000 +0000
@@ -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 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 #include <netdb.h>
diff -r 4e243140796d -r 2f20cf85361e usr.sbin/quotaon/quotaon.c
--- a/usr.sbin/quotaon/quotaon.c        Tue Jul 04 20:08:32 2000 +0000
+++ b/usr.sbin/quotaon/quotaon.c        Tue Jul 04 20:27:35 2000 +0000
@@ -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 @@
 #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 @@
 #include <err.h>
 #include <fstab.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 
diff -r 4e243140796d -r 2f20cf85361e usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c
--- a/usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c   Tue Jul 04 20:08:32 2000 +0000
+++ b/usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c   Tue Jul 04 20:27:35 2000 +0000
@@ -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@localhost>
@@ -45,6 +45,7 @@
 #include <pwd.h>
 #include <signal.h>
 #include <stdlib.h>
+#include <string.h>
 #include <unistd.h>
 #include <util.h>
 
diff -r 4e243140796d -r 2f20cf85361e usr.sbin/rpcbind/rpcb_stat.c
--- a/usr.sbin/rpcbind/rpcb_stat.c      Tue Jul 04 20:08:32 2000 +0000
+++ b/usr.sbin/rpcbind/rpcb_stat.c      Tue Jul 04 20:27:35 2000 +0000
@@ -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"
 



Home | Main Index | Thread Index | Old Index