include <stdlib.h>, <string.h>, or whatever as appropriate to shut up

gcc 2.96
This commit is contained in:
matt 2000-07-03 03:26:17 +00:00
parent fcd0fb118f
commit e2056eada9
5 changed files with 16 additions and 12 deletions

View File

@ -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 <errno.h>
#include <fts.h>
#include <locale.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>

View File

@ -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 <signal.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>

View File

@ -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;

View File

@ -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 <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include "shell.h"
#include "exec.h" /* defines padvance() */

View File

@ -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 <stdlib.h>
#include <unistd.h>
int main __P((int, char *[]));