Source-Changes-HG archive

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

[src/trunk]: src/bin include <stdlib.h>, <string.h>, or whatever as appropria...



details:   https://anonhg.NetBSD.org/src/rev/37a58fcda039
branches:  trunk
changeset: 494161:37a58fcda039
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Jul 03 03:26:17 2000 +0000

description:
include <stdlib.h>, <string.h>, or whatever as appropriate to shut up
gcc 2.96

diffstat:

 bin/cp/cp.c     |  5 +++--
 bin/sh/error.c  |  5 +++--
 bin/sh/exec.c   |  8 ++++----
 bin/sh/mail.c   |  5 +++--
 bin/sync/sync.c |  5 +++--
 5 files changed, 16 insertions(+), 12 deletions(-)

diffs (136 lines):

diff -r d7bd8a87d102 -r 37a58fcda039 bin/cp/cp.c
--- a/bin/cp/cp.c       Mon Jul 03 02:51:12 2000 +0000
+++ b/bin/cp/cp.c       Mon Jul 03 03:26:17 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cp.c,v 1.28 1999/09/05 16:14:43 kleink Exp $   */
+/*     $NetBSD: cp.c,v 1.29 2000/07/03 03:26:17 matt Exp $     */
 
 /*
  * Copyright (c) 1988, 1993, 1994
@@ -47,7 +47,7 @@
 #if 0
 static char sccsid[] = "@(#)cp.c       8.5 (Berkeley) 4/29/95";
 #else
-__RCSID("$NetBSD: cp.c,v 1.28 1999/09/05 16:14:43 kleink Exp $");
+__RCSID("$NetBSD: cp.c,v 1.29 2000/07/03 03:26:17 matt Exp $");
 #endif
 #endif /* not lint */
 
@@ -73,6 +73,7 @@
 #include <errno.h>
 #include <fts.h>
 #include <locale.h>
+#include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
diff -r d7bd8a87d102 -r 37a58fcda039 bin/sh/error.c
--- a/bin/sh/error.c    Mon Jul 03 02:51:12 2000 +0000
+++ b/bin/sh/error.c    Mon Jul 03 03:26:17 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: error.c,v 1.22 1999/07/09 03:05:49 christos Exp $      */
+/*     $NetBSD: error.c,v 1.23 2000/07/03 03:26:19 matt Exp $  */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)error.c    8.2 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: error.c,v 1.22 1999/07/09 03:05:49 christos Exp $");
+__RCSID("$NetBSD: error.c,v 1.23 2000/07/03 03:26:19 matt Exp $");
 #endif
 #endif /* not lint */
 
@@ -50,6 +50,7 @@
  */
 
 #include <signal.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <errno.h>
 
diff -r d7bd8a87d102 -r 37a58fcda039 bin/sh/exec.c
--- a/bin/sh/exec.c     Mon Jul 03 02:51:12 2000 +0000
+++ b/bin/sh/exec.c     Mon Jul 03 03:26:17 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec.c,v 1.29 2000/05/22 10:18:46 elric Exp $  */
+/*     $NetBSD: exec.c,v 1.30 2000/07/03 03:26:19 matt Exp $   */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)exec.c     8.4 (Berkeley) 6/8/95";
 #else
-__RCSID("$NetBSD: exec.c,v 1.29 2000/05/22 10:18:46 elric Exp $");
+__RCSID("$NetBSD: exec.c,v 1.30 2000/07/03 03:26:19 matt Exp $");
 #endif
 #endif /* not lint */
 
@@ -875,7 +875,7 @@
 {
        struct cmdentry entry;
        struct tblentry *cmdp;
-       char **pp;
+       char * const *pp;
        struct alias *ap;
        int i;
        int err = 0;
@@ -884,7 +884,7 @@
        for (i = 1; i < argc; i++) {
                out1str(argv[i]);
                /* First look at the keywords */
-               for (pp = (char **)parsekwd; *pp; pp++)
+               for (pp = parsekwd; *pp; pp++)
                        if (**pp == *argv[i] && equal(*pp, argv[i]))
                                break;
 
diff -r d7bd8a87d102 -r 37a58fcda039 bin/sh/mail.c
--- a/bin/sh/mail.c     Mon Jul 03 02:51:12 2000 +0000
+++ b/bin/sh/mail.c     Mon Jul 03 03:26:17 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mail.c,v 1.13 1999/07/09 03:05:50 christos Exp $       */
+/*     $NetBSD: mail.c,v 1.14 2000/07/03 03:26:19 matt Exp $   */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)mail.c     8.2 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: mail.c,v 1.13 1999/07/09 03:05:50 christos Exp $");
+__RCSID("$NetBSD: mail.c,v 1.14 2000/07/03 03:26:19 matt Exp $");
 #endif
 #endif /* not lint */
 
@@ -50,6 +50,7 @@
  */
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <stdlib.h>
 
 #include "shell.h"
 #include "exec.h"      /* defines padvance() */
diff -r d7bd8a87d102 -r 37a58fcda039 bin/sync/sync.c
--- a/bin/sync/sync.c   Mon Jul 03 02:51:12 2000 +0000
+++ b/bin/sync/sync.c   Mon Jul 03 03:26:17 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sync.c,v 1.9 1997/11/05 21:19:04 cgd Exp $     */
+/*     $NetBSD: sync.c,v 1.10 2000/07/03 03:26:20 matt Exp $   */
 
 /*
  * Copyright (c) 1987, 1993
@@ -43,10 +43,11 @@
 #if 0
 static char sccsid[] = "@(#)sync.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: sync.c,v 1.9 1997/11/05 21:19:04 cgd Exp $");
+__RCSID("$NetBSD: sync.c,v 1.10 2000/07/03 03:26:20 matt Exp $");
 #endif
 #endif /* not lint */
 
+#include <stdlib.h>
 #include <unistd.h>
 
 int main __P((int, char *[]));



Home | Main Index | Thread Index | Old Index