Source-Changes-HG archive

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

[src/trunk]: src/usr.bin Make gcc 2.96 (and maybe earlier) happier. Include ...



details:   https://anonhg.NetBSD.org/src/rev/d7bd8a87d102
branches:  trunk
changeset: 494160:d7bd8a87d102
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Jul 03 02:51:12 2000 +0000

description:
Make gcc 2.96 (and maybe earlier) happier.  Include <stdlib.h>,<string.>,
etc. as appropriate to get exit,srncmp,abs,abort,etc.
Add -I${.CURDIR} to a few Makefiles

diffstat:

 usr.bin/banner/banner.c      |  5 +++--
 usr.bin/bzip2/Makefile       |  8 ++++----
 usr.bin/colcrt/colcrt.c      |  5 +++--
 usr.bin/fgen/Makefile        |  3 ++-
 usr.bin/fsplit/fsplit.c      |  3 ++-
 usr.bin/getconf/getconf.c    |  5 +++--
 usr.bin/getopt/getopt.c      |  5 +++--
 usr.bin/innetgr/innetgr.c    |  5 +++--
 usr.bin/ktrace/ktrace.c      |  5 +++--
 usr.bin/leave/leave.c        |  5 +++--
 usr.bin/menuc/avl.c          |  4 +++-
 usr.bin/menuc/main.c         |  3 ++-
 usr.bin/msgc/msgmain.c       |  3 ++-
 usr.bin/netgroup/netgroup.c  |  5 +++--
 usr.bin/netstat/if.c         |  5 +++--
 usr.bin/nl/nl.c              |  5 +++--
 usr.bin/passwd/passwd.c      |  5 +++--
 usr.bin/rdist/Makefile       |  3 ++-
 usr.bin/renice/renice.c      |  5 +++--
 usr.bin/talk/get_addrs.c     |  5 +++--
 usr.bin/talk/get_names.c     |  5 +++--
 usr.bin/talk/init_disp.c     |  5 +++--
 usr.bin/tput/tput.c          |  5 +++--
 usr.bin/unifdef/unifdef.c    |  6 ++++--
 usr.bin/usbhidctl/usbhid.c   |  3 ++-
 usr.bin/window/scanner.c     |  6 ++++--
 usr.bin/window/tttermcap.c   |  5 +++--
 usr.bin/window/var.c         |  5 +++--
 usr.bin/window/wwend.c       |  5 +++--
 usr.bin/window/wwscroll.c    |  6 ++++--
 usr.bin/write/write.c        |  5 +++--
 usr.bin/xlint/lint1/Makefile |  4 ++--
 usr.bin/ypcat/ypcat.c        |  6 ++++--
 usr.bin/ypmatch/ypmatch.c    |  5 +++--
 usr.bin/ypwhich/ypwhich.c    |  3 ++-
 35 files changed, 102 insertions(+), 64 deletions(-)

diffs (truncated from 776 to 300 lines):

diff -r 0cf658551291 -r d7bd8a87d102 usr.bin/banner/banner.c
--- a/usr.bin/banner/banner.c   Mon Jul 03 02:17:56 2000 +0000
+++ b/usr.bin/banner/banner.c   Mon Jul 03 02:51:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: banner.c,v 1.4 2000/05/30 12:03:31 sjg Exp $   */
+/*     $NetBSD: banner.c,v 1.5 2000/07/03 02:51:12 matt Exp $  */
 
 /*
  *     Changes for banner(1)
@@ -62,11 +62,12 @@
 #if 0
 static char sccsid[] = "@(#)printjob.c 8.2 (Berkeley) 4/16/94";
 #else
-__RCSID("$NetBSD: banner.c,v 1.4 2000/05/30 12:03:31 sjg Exp $");
+__RCSID("$NetBSD: banner.c,v 1.5 2000/07/03 02:51:12 matt Exp $");
 #endif
 #endif /* not lint */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 
diff -r 0cf658551291 -r d7bd8a87d102 usr.bin/bzip2/Makefile
--- a/usr.bin/bzip2/Makefile    Mon Jul 03 02:17:56 2000 +0000
+++ b/usr.bin/bzip2/Makefile    Mon Jul 03 02:51:12 2000 +0000
@@ -1,14 +1,14 @@
-#      $NetBSD: Makefile,v 1.2 1998/09/14 05:34:41 ross Exp $
-
-.include <bsd.own.mk>
+#      $NetBSD: Makefile,v 1.3 2000/07/03 02:51:15 matt Exp $
 
 PROG=      bzip2
 WARNS=    0
-CWARNFLAGS=-Wall -Wstrict-prototypes -Wpointer-arith
+CWARNFLAGS+=-Wall -Wstrict-prototypes -Wpointer-arith
 LDSTATIC?= -static
 LDADD+=           -lbz2
 DPADD+=           ${LIBBZ2}
 
+.include <bsd.own.mk>
+
 MLINKS+=   bzip2.1 bunzip2.1\
           bzip2.1 bzcat.1\
           bzip2.1 bzip2recover.1
diff -r 0cf658551291 -r d7bd8a87d102 usr.bin/colcrt/colcrt.c
--- a/usr.bin/colcrt/colcrt.c   Mon Jul 03 02:17:56 2000 +0000
+++ b/usr.bin/colcrt/colcrt.c   Mon Jul 03 02:51:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: colcrt.c,v 1.4 1997/10/18 12:59:10 lukem Exp $ */
+/*     $NetBSD: colcrt.c,v 1.5 2000/07/03 02:51:15 matt Exp $  */
 
 /*
  * Copyright (c) 1980, 1993
@@ -43,11 +43,12 @@
 #if 0
 static char sccsid[] = "@(#)colcrt.c   8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: colcrt.c,v 1.4 1997/10/18 12:59:10 lukem Exp $");
+__RCSID("$NetBSD: colcrt.c,v 1.5 2000/07/03 02:51:15 matt Exp $");
 #endif
 #endif /* not lint */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 
diff -r 0cf658551291 -r d7bd8a87d102 usr.bin/fgen/Makefile
--- a/usr.bin/fgen/Makefile     Mon Jul 03 02:17:56 2000 +0000
+++ b/usr.bin/fgen/Makefile     Mon Jul 03 02:51:12 2000 +0000
@@ -1,5 +1,6 @@
-#      $NetBSD: Makefile,v 1.3 2000/04/16 04:57:55 mrg Exp $
+#      $NetBSD: Makefile,v 1.4 2000/07/03 02:51:16 matt Exp $
 
+CPPFLAGS+= -I${.CURDIR}
 PROG=  fgen
 SRCS=  fgen.l
 MAN=   fgen.1
diff -r 0cf658551291 -r d7bd8a87d102 usr.bin/fsplit/fsplit.c
--- a/usr.bin/fsplit/fsplit.c   Mon Jul 03 02:17:56 2000 +0000
+++ b/usr.bin/fsplit/fsplit.c   Mon Jul 03 02:51:12 2000 +0000
@@ -44,7 +44,7 @@
 #if 0
 static char sccsid[] = "from: @(#)fsplit.c     8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: fsplit.c,v 1.7 1998/12/19 16:38:10 christos Exp $");
+__RCSID("$NetBSD: fsplit.c,v 1.8 2000/07/03 02:51:16 matt Exp $");
 #endif
 #endif /* not lint */
 
@@ -53,6 +53,7 @@
 
 #include <ctype.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 
diff -r 0cf658551291 -r d7bd8a87d102 usr.bin/getconf/getconf.c
--- a/usr.bin/getconf/getconf.c Mon Jul 03 02:17:56 2000 +0000
+++ b/usr.bin/getconf/getconf.c Mon Jul 03 02:51:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getconf.c,v 1.12 2000/04/20 00:41:20 simonb Exp $      */
+/*     $NetBSD: getconf.c,v 1.13 2000/07/03 02:51:17 matt Exp $        */
 
 /*-
  * Copyright (c) 1996, 1998 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: getconf.c,v 1.12 2000/04/20 00:41:20 simonb Exp $");
+__RCSID("$NetBSD: getconf.c,v 1.13 2000/07/03 02:51:17 matt Exp $");
 #endif /* not lint */
 
 #include <err.h>
@@ -48,6 +48,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <string.h>
 
 int    main __P((int, char **));
 static void usage __P((void));
diff -r 0cf658551291 -r d7bd8a87d102 usr.bin/getopt/getopt.c
--- a/usr.bin/getopt/getopt.c   Mon Jul 03 02:17:56 2000 +0000
+++ b/usr.bin/getopt/getopt.c   Mon Jul 03 02:51:12 2000 +0000
@@ -1,12 +1,13 @@
-/*     $NetBSD: getopt.c,v 1.5 1998/02/03 03:44:22 perry Exp $ */
+/*     $NetBSD: getopt.c,v 1.6 2000/07/03 02:51:18 matt Exp $  */
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: getopt.c,v 1.5 1998/02/03 03:44:22 perry Exp $");
+__RCSID("$NetBSD: getopt.c,v 1.6 2000/07/03 02:51:18 matt Exp $");
 #endif /* not lint */
 
 #include <errno.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 
 int    main __P((int, char **));
diff -r 0cf658551291 -r d7bd8a87d102 usr.bin/innetgr/innetgr.c
--- a/usr.bin/innetgr/innetgr.c Mon Jul 03 02:17:56 2000 +0000
+++ b/usr.bin/innetgr/innetgr.c Mon Jul 03 02:51:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: innetgr.c,v 1.1 1999/03/02 13:59:17 christos Exp $     */
+/*     $NetBSD: innetgr.c,v 1.2 2000/07/03 02:51:20 matt Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -37,9 +37,10 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: innetgr.c,v 1.1 1999/03/02 13:59:17 christos Exp $");
+__RCSID("$NetBSD: innetgr.c,v 1.2 2000/07/03 02:51:20 matt Exp $");
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <netgroup.h>
 
diff -r 0cf658551291 -r d7bd8a87d102 usr.bin/ktrace/ktrace.c
--- a/usr.bin/ktrace/ktrace.c   Mon Jul 03 02:17:56 2000 +0000
+++ b/usr.bin/ktrace/ktrace.c   Mon Jul 03 02:51:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ktrace.c,v 1.17 2000/05/27 00:45:37 sommerfeld Exp $   */
+/*     $NetBSD: ktrace.c,v 1.18 2000/07/03 02:51:21 matt Exp $ */
 
 /*-
  * Copyright (c) 1988, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)ktrace.c   8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: ktrace.c,v 1.17 2000/05/27 00:45:37 sommerfeld Exp $");
+__RCSID("$NetBSD: ktrace.c,v 1.18 2000/07/03 02:51:21 matt Exp $");
 #endif
 #endif /* not lint */
 
@@ -59,6 +59,7 @@
 #include <err.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <unistd.h>
 
 #include "ktrace.h"
diff -r 0cf658551291 -r d7bd8a87d102 usr.bin/leave/leave.c
--- a/usr.bin/leave/leave.c     Mon Jul 03 02:17:56 2000 +0000
+++ b/usr.bin/leave/leave.c     Mon Jul 03 02:51:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: leave.c,v 1.8 1998/12/19 17:44:22 christos Exp $       */
+/*     $NetBSD: leave.c,v 1.9 2000/07/03 02:51:22 matt Exp $   */
 
 /*
  * Copyright (c) 1980, 1988, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)leave.c    8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: leave.c,v 1.8 1998/12/19 17:44:22 christos Exp $");
+__RCSID("$NetBSD: leave.c,v 1.9 2000/07/03 02:51:22 matt Exp $");
 #endif
 #endif /* not lint */
 
@@ -51,6 +51,7 @@
 #include <sys/time.h>
 #include <ctype.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <time.h>
 #include <unistd.h>
 
diff -r 0cf658551291 -r d7bd8a87d102 usr.bin/menuc/avl.c
--- a/usr.bin/menuc/avl.c       Mon Jul 03 02:17:56 2000 +0000
+++ b/usr.bin/menuc/avl.c       Mon Jul 03 02:51:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: avl.c,v 1.1.1.1 1997/09/26 17:54:09 phil Exp $ */
+/*     $NetBSD: avl.c,v 1.2 2000/07/03 02:51:23 matt Exp $     */
 
 /*
  * Copyright (c) 1997 Philip A. Nelson.
@@ -46,6 +46,8 @@
  *     } id_rec;
  */
 
+#include <string.h>
+
 #include "defs.h"
 
 /*  find_id returns a pointer to node in TREE that has the correct
diff -r 0cf658551291 -r d7bd8a87d102 usr.bin/menuc/main.c
--- a/usr.bin/menuc/main.c      Mon Jul 03 02:17:56 2000 +0000
+++ b/usr.bin/menuc/main.c      Mon Jul 03 02:51:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.6 1999/06/20 05:41:45 cgd Exp $     */
+/*     $NetBSD: main.c,v 1.7 2000/07/03 02:51:24 matt Exp $    */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -39,6 +39,7 @@
 /* main.c - main program for menu compiler. */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 
 #define MAIN
diff -r 0cf658551291 -r d7bd8a87d102 usr.bin/msgc/msgmain.c
--- a/usr.bin/msgc/msgmain.c    Mon Jul 03 02:17:56 2000 +0000
+++ b/usr.bin/msgc/msgmain.c    Mon Jul 03 02:51:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msgmain.c,v 1.3 1998/02/03 03:53:39 perry Exp $        */
+/*     $NetBSD: msgmain.c,v 1.4 2000/07/03 02:51:25 matt Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -39,6 +39,7 @@
 /* main.c - main program */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 
 #define MAIN
diff -r 0cf658551291 -r d7bd8a87d102 usr.bin/netgroup/netgroup.c
--- a/usr.bin/netgroup/netgroup.c       Mon Jul 03 02:17:56 2000 +0000
+++ b/usr.bin/netgroup/netgroup.c       Mon Jul 03 02:51:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netgroup.c,v 1.1 1999/03/02 13:59:55 christos Exp $    */
+/*     $NetBSD: netgroup.c,v 1.2 2000/07/03 02:51:25 matt Exp $        */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -37,9 +37,10 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: netgroup.c,v 1.1 1999/03/02 13:59:55 christos Exp $");
+__RCSID("$NetBSD: netgroup.c,v 1.2 2000/07/03 02:51:25 matt Exp $");
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <netgroup.h>
 
diff -r 0cf658551291 -r d7bd8a87d102 usr.bin/netstat/if.c
--- a/usr.bin/netstat/if.c      Mon Jul 03 02:17:56 2000 +0000
+++ b/usr.bin/netstat/if.c      Mon Jul 03 02:51:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.c,v 1.41 2000/07/02 09:07:23 itojun Exp $   */
+/*     $NetBSD: if.c,v 1.42 2000/07/03 02:51:26 matt Exp $     */
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -38,7 +38,7 @@



Home | Main Index | Thread Index | Old Index