From e2056eada9ba3e383406c4c8a3aa8f0184137f7c Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 3 Jul 2000 03:26:17 +0000 Subject: [PATCH] include , , or whatever as appropriate to shut up gcc 2.96 --- 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(-) diff --git a/bin/cp/cp.c b/bin/cp/cp.c index 477609e59af8..5a9cb77548fb 100644 --- a/bin/cp/cp.c +++ b/bin/cp/cp.c @@ -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 @@ __COPYRIGHT( #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 @@ __RCSID("$NetBSD: cp.c,v 1.28 1999/09/05 16:14:43 kleink Exp $"); #include #include #include +#include #include #include #include diff --git a/bin/sh/error.c b/bin/sh/error.c index 8db49bd932f2..84e35fa41ff6 100644 --- a/bin/sh/error.c +++ b/bin/sh/error.c @@ -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 @@ __RCSID("$NetBSD: error.c,v 1.22 1999/07/09 03:05:49 christos Exp $"); */ #include +#include #include #include diff --git a/bin/sh/exec.c b/bin/sh/exec.c index 11272e05d195..e5350415719e 100644 --- a/bin/sh/exec.c +++ b/bin/sh/exec.c @@ -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 @@ typecmd(argc, argv) { struct cmdentry entry; struct tblentry *cmdp; - char **pp; + char * const *pp; struct alias *ap; int i; int err = 0; @@ -884,7 +884,7 @@ typecmd(argc, argv) 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 --git a/bin/sh/mail.c b/bin/sh/mail.c index b43f48628e67..8d890c431151 100644 --- a/bin/sh/mail.c +++ b/bin/sh/mail.c @@ -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 @@ __RCSID("$NetBSD: mail.c,v 1.13 1999/07/09 03:05:50 christos Exp $"); */ #include #include +#include #include "shell.h" #include "exec.h" /* defines padvance() */ diff --git a/bin/sync/sync.c b/bin/sync/sync.c index 933a1d20551e..5e34fa88dda3 100644 --- a/bin/sync/sync.c +++ b/bin/sync/sync.c @@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 1993\n\ #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 #include int main __P((int, char *[]));