Skip to content

Commit 75a6e03

Browse files
perryperry
authored andcommitted
change includes to fix compiler warning
1 parent 6cbd3cb commit 75a6e03

File tree

10 files changed

+38
-24
lines changed

10 files changed

+38
-24
lines changed

bin/ed/cbc.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: cbc.c,v 1.11 1997/07/20 06:35:36 thorpej Exp $ */
1+
/* $NetBSD: cbc.c,v 1.12 1998/02/03 05:49:42 perry Exp $ */
22

33
/* cbc.c: This file contains the encryption routines for the ed line editor */
44
/*-
@@ -44,14 +44,17 @@
4444
#if 0
4545
static char *rcsid = "@(#)cbc.c,v 1.2 1994/02/01 00:34:36 alm Exp";
4646
#else
47-
__RCSID("$NetBSD: cbc.c,v 1.11 1997/07/20 06:35:36 thorpej Exp $");
47+
__RCSID("$NetBSD: cbc.c,v 1.12 1998/02/03 05:49:42 perry Exp $");
4848
#endif
4949
#endif /* not lint */
5050

5151
#include <sys/types.h>
5252
#include <ctype.h>
5353
#include <errno.h>
5454
#include <pwd.h>
55+
#ifdef DES
56+
#include <time.h>
57+
#endif
5558

5659
#include "ed.h"
5760

games/adventure/init.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: init.c,v 1.7 1997/10/11 01:53:28 lukem Exp $ */
1+
/* $NetBSD: init.c,v 1.8 1998/02/03 05:32:13 perry Exp $ */
22

33
/*-
44
* Copyright (c) 1993
@@ -43,7 +43,7 @@
4343
#if 0
4444
static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 6/2/93";
4545
#else
46-
__RCSID("$NetBSD: init.c,v 1.7 1997/10/11 01:53:28 lukem Exp $");
46+
__RCSID("$NetBSD: init.c,v 1.8 1998/02/03 05:32:13 perry Exp $");
4747
#endif
4848
#endif /* not lint */
4949

@@ -53,7 +53,9 @@ __RCSID("$NetBSD: init.c,v 1.7 1997/10/11 01:53:28 lukem Exp $");
5353
#include <signal.h>
5454
#include <stdio.h>
5555
#include <stdlib.h>
56+
#include <time.h>
5657
#include <unistd.h>
58+
5759
#include "hdr.h"
5860
#include "extern.h"
5961

games/arithmetic/arithmetic.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: arithmetic.c,v 1.9 1997/10/15 08:53:24 is Exp $ */
1+
/* $NetBSD: arithmetic.c,v 1.10 1998/02/03 05:33:32 perry Exp $ */
22

33
/*
44
* Copyright (c) 1989, 1993
@@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\
4646
#if 0
4747
static char sccsid[] = "@(#)arithmetic.c 8.1 (Berkeley) 5/31/93";
4848
#else
49-
__RCSID("$NetBSD: arithmetic.c,v 1.9 1997/10/15 08:53:24 is Exp $");
49+
__RCSID("$NetBSD: arithmetic.c,v 1.10 1998/02/03 05:33:32 perry Exp $");
5050
#endif
5151
#endif /* not lint */
5252

@@ -86,6 +86,7 @@ __RCSID("$NetBSD: arithmetic.c,v 1.9 1997/10/15 08:53:24 is Exp $");
8686
#include <stdlib.h>
8787
#include <string.h>
8888
#include <time.h>
89+
#include <unistd.h>
8990

9091
int getrandom __P((int, int, int));
9192
void intr __P((int));

games/battlestar/extern.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: extern.h,v 1.6 1997/10/11 02:07:18 lukem Exp $ */
1+
/* $NetBSD: extern.h,v 1.7 1998/02/03 05:39:25 perry Exp $ */
22

33
/*
44
* Copyright (c) 1983, 1993
@@ -35,6 +35,8 @@
3535
* @(#)externs.h 8.1 (Berkeley) 5/31/93
3636
*/
3737

38+
#include <sys/time.h>
39+
3840
#include <ctype.h>
3941
#include <err.h>
4042
#include <pwd.h>

games/gomoku/main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: main.c,v 1.4 1997/10/10 13:36:04 lukem Exp $ */
1+
/* $NetBSD: main.c,v 1.5 1998/02/03 05:40:45 perry Exp $ */
22

33
/*
44
* Copyright (c) 1994
@@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1994\n\
4646
#if 0
4747
static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 5/4/95";
4848
#else
49-
__RCSID("$NetBSD: main.c,v 1.4 1997/10/10 13:36:04 lukem Exp $");
49+
__RCSID("$NetBSD: main.c,v 1.5 1998/02/03 05:40:45 perry Exp $");
5050
#endif
5151
#endif /* not lint */
5252

@@ -55,6 +55,7 @@ __RCSID("$NetBSD: main.c,v 1.4 1997/10/10 13:36:04 lukem Exp $");
5555
#include <signal.h>
5656
#include <stdlib.h>
5757
#include <string.h>
58+
#include <time.h>
5859
#include <unistd.h>
5960

6061
#include "gomoku.h"

usr.sbin/nfsd/nfsd.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: nfsd.c,v 1.24 1997/10/18 11:02:19 lukem Exp $ */
1+
/* $NetBSD: nfsd.c,v 1.25 1998/02/03 04:55:59 perry Exp $ */
22

33
/*
44
* Copyright (c) 1989, 1993, 1994
@@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993, 1994\n\
4646
#if 0
4747
static char sccsid[] = "@(#)nfsd.c 8.9 (Berkeley) 3/29/95";
4848
#else
49-
__RCSID("$NetBSD: nfsd.c,v 1.24 1997/10/18 11:02:19 lukem Exp $");
49+
__RCSID("$NetBSD: nfsd.c,v 1.25 1998/02/03 04:55:59 perry Exp $");
5050
#endif
5151
#endif /* not lint */
5252

@@ -84,7 +84,7 @@ __RCSID("$NetBSD: nfsd.c,v 1.24 1997/10/18 11:02:19 lukem Exp $");
8484
#include <signal.h>
8585
#include <stdio.h>
8686
#include <stdlib.h>
87-
#include <strings.h>
87+
#include <string.h>
8888
#include <syslog.h>
8989
#include <unistd.h>
9090

usr.sbin/quotaon/quotaon.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: quotaon.c,v 1.11 1997/10/22 18:43:16 fair Exp $ */
1+
/* $NetBSD: quotaon.c,v 1.12 1998/02/03 05:00:42 perry Exp $ */
22

33
/*
44
* Copyright (c) 1980, 1990, 1993
@@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1990, 1993\n\
4646
#if 0
4747
static char sccsid[] = "@(#)quotaon.c 8.1 (Berkeley) 6/6/93";
4848
#else
49-
__RCSID("$NetBSD: quotaon.c,v 1.11 1997/10/22 18:43:16 fair Exp $");
49+
__RCSID("$NetBSD: quotaon.c,v 1.12 1998/02/03 05:00:42 perry Exp $");
5050
#endif
5151
#endif /* not lint */
5252

@@ -57,11 +57,12 @@ __RCSID("$NetBSD: quotaon.c,v 1.11 1997/10/22 18:43:16 fair Exp $");
5757
#include <sys/file.h>
5858
#include <sys/mount.h>
5959
#include <ufs/ufs/quota.h>
60+
61+
#include <err.h>
62+
#include <fstab.h>
6063
#include <stdio.h>
6164
#include <string.h>
62-
#include <stdlib.h>
63-
#include <fstab.h>
64-
#include <err.h>
65+
#include <unistd.h>
6566

6667
char *qfname = QUOTAFILENAME;
6768
char *qfextension[] = INITQFNAMES;

usr.sbin/sup/source/libc.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: libc.h,v 1.3 1997/06/17 18:56:18 christos Exp $ */
1+
/* $NetBSD: libc.h,v 1.4 1998/02/03 05:11:06 perry Exp $ */
22

33
/*
44
* Copyright (c) 1991 Carnegie Mellon University
@@ -93,6 +93,10 @@
9393
#include <strings.h>
9494
#endif /* _STRINGS_H_ */
9595

96+
#ifndef _STRING_H_
97+
#include <string.h>
98+
#endif /* _STRINGS_H_ */
99+
96100
#ifndef _TIME_H_
97101
#include <time.h>
98102
#endif /* _TIME_H_ */

usr.sbin/tcpdmatch/tcpdmatch.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: tcpdmatch.c,v 1.2 1997/10/11 21:48:52 christos Exp $ */
1+
/* $NetBSD: tcpdmatch.c,v 1.3 1998/02/03 05:13:34 perry Exp $ */
22

33
/*
44
* tcpdmatch - explain what tcpd would do in a specific case
@@ -20,7 +20,7 @@
2020
#if 0
2121
static char sccsid[] = "@(#) tcpdmatch.c 1.5 96/02/11 17:01:36";
2222
#else
23-
__RCSID("$NetBSD: tcpdmatch.c,v 1.2 1997/10/11 21:48:52 christos Exp $");
23+
__RCSID("$NetBSD: tcpdmatch.c,v 1.3 1998/02/03 05:13:34 perry Exp $");
2424
#endif
2525
#endif
2626

@@ -36,7 +36,7 @@ __RCSID("$NetBSD: tcpdmatch.c,v 1.2 1997/10/11 21:48:52 christos Exp $");
3636
#include <syslog.h>
3737
#include <setjmp.h>
3838
#include <string.h>
39-
#include <stdlib.h>
39+
#include <unistd.h>
4040

4141
#ifndef INADDR_NONE
4242
#define INADDR_NONE (-1) /* XXX should be 0xffffffff */

usr.sbin/ypserv/revnetgroup/revnetgroup.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: revnetgroup.c,v 1.4 1997/11/13 18:40:12 thorpej Exp $ */
1+
/* $NetBSD: revnetgroup.c,v 1.5 1998/02/03 05:19:01 perry Exp $ */
22

33
/*
44
* Copyright (c) 1995
@@ -41,15 +41,15 @@
4141

4242
#include <sys/cdefs.h>
4343
#ifndef lint
44-
__RCSID("$NetBSD: revnetgroup.c,v 1.4 1997/11/13 18:40:12 thorpej Exp $");
44+
__RCSID("$NetBSD: revnetgroup.c,v 1.5 1998/02/03 05:19:01 perry Exp $");
4545
#endif
4646

4747
#include <ctype.h>
4848
#include <err.h>
4949
#include <errno.h>
5050
#include <stdio.h>
51-
#include <stdlib.h>
5251
#include <string.h>
52+
#include <unistd.h>
5353

5454
#include "hash.h"
5555
#include "protos.h"

0 commit comments

Comments
 (0)