Skip to content

Commit dc6488e

Browse files
committed
remove redundant decls.
1 parent 16263c8 commit dc6488e

File tree

20 files changed

+40
-132
lines changed

20 files changed

+40
-132
lines changed

games/sail/assorted.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: assorted.c,v 1.13 2001/01/04 06:16:51 jwise Exp $ */
1+
/* $NetBSD: assorted.c,v 1.14 2001/02/05 01:10:08 christos Exp $ */
22

33
/*
44
* Copyright (c) 1983, 1993
@@ -38,16 +38,14 @@
3838
#if 0
3939
static char sccsid[] = "@(#)assorted.c 8.2 (Berkeley) 4/28/95";
4040
#else
41-
__RCSID("$NetBSD: assorted.c,v 1.13 2001/01/04 06:16:51 jwise Exp $");
41+
__RCSID("$NetBSD: assorted.c,v 1.14 2001/02/05 01:10:08 christos Exp $");
4242
#endif
4343
#endif /* not lint */
4444

4545
#include <stdlib.h>
4646
#include <err.h>
4747
#include "extern.h"
4848

49-
void table(struct ship *, struct ship *, int, int, int, int);
50-
void Cleansnag(struct ship *, struct ship *, int, int);
5149
static void strike (struct ship *, struct ship *);
5250

5351
void

games/sail/dr_1.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: dr_1.c,v 1.17 2001/01/04 06:16:51 jwise Exp $ */
1+
/* $NetBSD: dr_1.c,v 1.18 2001/02/05 01:10:08 christos Exp $ */
22

33
/*
44
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
3838
#if 0
3939
static char sccsid[] = "@(#)dr_1.c 8.1 (Berkeley) 5/31/93";
4040
#else
41-
__RCSID("$NetBSD: dr_1.c,v 1.17 2001/01/04 06:16:51 jwise Exp $");
41+
__RCSID("$NetBSD: dr_1.c,v 1.18 2001/02/05 01:10:08 christos Exp $");
4242
#endif
4343
#endif /* not lint */
4444

@@ -49,12 +49,7 @@ __RCSID("$NetBSD: dr_1.c,v 1.17 2001/01/04 06:16:51 jwise Exp $");
4949
#include "extern.h"
5050
#include "driver.h"
5151

52-
void unfoul(void);
53-
void boardcomp(void);
5452
static int fightitout(struct ship *, struct ship *, int);
55-
void resolve(void);
56-
void compcombat(void);
57-
int next(void);
5853

5954
void
6055
unfoul(void)

games/sail/dr_2.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: dr_2.c,v 1.17 2001/01/04 06:16:51 jwise Exp $ */
1+
/* $NetBSD: dr_2.c,v 1.18 2001/02/05 01:10:08 christos Exp $ */
22

33
/*
44
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
3838
#if 0
3939
static char sccsid[] = "@(#)dr_2.c 8.1 (Berkeley) 5/31/93";
4040
#else
41-
__RCSID("$NetBSD: dr_2.c,v 1.17 2001/01/04 06:16:51 jwise Exp $");
41+
__RCSID("$NetBSD: dr_2.c,v 1.18 2001/02/05 01:10:08 christos Exp $");
4242
#endif
4343
#endif /* not lint */
4444

@@ -50,11 +50,7 @@ __RCSID("$NetBSD: dr_2.c,v 1.17 2001/01/04 06:16:51 jwise Exp $");
5050

5151
#define couldwin(f,t) (f->specs->crew2 > t->specs->crew2 * 1.5)
5252

53-
void thinkofgrapples(void);
54-
void checkup(void);
55-
void prizecheck(void);
5653
static int str_end(const char *);
57-
void closeon(struct ship *, struct ship *, char *, int, int, int);
5854
static int score(struct ship *, struct ship *, char *, int);
5955
static void move_ship(struct ship *, const char *, unsigned char *, short *, short *, char *);
6056
static void try(struct ship *, struct ship *, char *, char *, int, int, int, int, int, int *, int);

games/sail/dr_3.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: dr_3.c,v 1.13 2001/01/04 06:16:51 jwise Exp $ */
1+
/* $NetBSD: dr_3.c,v 1.14 2001/02/05 01:10:09 christos Exp $ */
22

33
/*
44
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
3838
#if 0
3939
static char sccsid[] = "@(#)dr_3.c 8.1 (Berkeley) 5/31/93";
4040
#else
41-
__RCSID("$NetBSD: dr_3.c,v 1.13 2001/01/04 06:16:51 jwise Exp $");
41+
__RCSID("$NetBSD: dr_3.c,v 1.14 2001/02/05 01:10:09 christos Exp $");
4242
#endif
4343
#endif /* not lint */
4444

@@ -47,15 +47,10 @@ __RCSID("$NetBSD: dr_3.c,v 1.13 2001/01/04 06:16:51 jwise Exp $");
4747
#include "extern.h"
4848
#include "driver.h"
4949

50-
void moveall(void);
5150
static int stillmoving(int);
5251
static int is_isolated(struct ship *);
5352
static int push(struct ship *, struct ship *);
5453
static void step(struct ship *, int, char *);
55-
void sendbp(struct ship *, struct ship *, int, int);
56-
int is_toughmelee(struct ship *, struct ship *, int, int);
57-
void reload(void);
58-
void checksails(void);
5954

6055
/* move all comp ships */
6156
void

games/sail/dr_4.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: dr_4.c,v 1.11 2001/01/04 03:21:17 jwise Exp $ */
1+
/* $NetBSD: dr_4.c,v 1.12 2001/02/05 01:10:09 christos Exp $ */
22

33
/*
44
* Copyright (c) 1983, 1993
@@ -38,16 +38,13 @@
3838
#if 0
3939
static char sccsid[] = "@(#)dr_4.c 8.2 (Berkeley) 4/28/95";
4040
#else
41-
__RCSID("$NetBSD: dr_4.c,v 1.11 2001/01/04 03:21:17 jwise Exp $");
41+
__RCSID("$NetBSD: dr_4.c,v 1.12 2001/02/05 01:10:09 christos Exp $");
4242
#endif
4343
#endif /* not lint */
4444

4545
#include <stdlib.h>
4646
#include "extern.h"
4747

48-
void ungrap(struct ship *, struct ship *);
49-
void grap(struct ship *, struct ship *);
50-
5148
void
5249
ungrap(struct ship *from, struct ship *to)
5350
{

games/sail/dr_5.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: dr_5.c,v 1.10 2001/01/04 06:16:51 jwise Exp $ */
1+
/* $NetBSD: dr_5.c,v 1.11 2001/02/05 01:10:09 christos Exp $ */
22

33
/*
44
* Copyright (c) 1983, 1993
@@ -38,16 +38,13 @@
3838
#if 0
3939
static char sccsid[] = "@(#)dr_5.c 8.2 (Berkeley) 4/28/95";
4040
#else
41-
__RCSID("$NetBSD: dr_5.c,v 1.10 2001/01/04 06:16:51 jwise Exp $");
41+
__RCSID("$NetBSD: dr_5.c,v 1.11 2001/02/05 01:10:09 christos Exp $");
4242
#endif
4343
#endif /* not lint */
4444

4545
#include <sys/types.h>
4646
#include "extern.h"
4747

48-
void subtract(struct ship *, struct ship *, int, int *, int);
49-
int mensent(struct ship *, struct ship *, int *, struct ship **, int *, int);
50-
5148
void
5249
subtract(struct ship *from, struct ship *fromcap, int totalfrom, int *crewfrom, int pcfrom)
5350
{

games/sail/dr_main.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: dr_main.c,v 1.10 2001/01/04 03:51:24 jwise Exp $ */
1+
/* $NetBSD: dr_main.c,v 1.11 2001/02/05 01:10:09 christos Exp $ */
22

33
/*
44
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
3838
#if 0
3939
static char sccsid[] = "@(#)dr_main.c 8.2 (Berkeley) 4/16/94";
4040
#else
41-
__RCSID("$NetBSD: dr_main.c,v 1.10 2001/01/04 03:51:24 jwise Exp $");
41+
__RCSID("$NetBSD: dr_main.c,v 1.11 2001/02/05 01:10:09 christos Exp $");
4242
#endif
4343
#endif /* not lint */
4444

@@ -49,8 +49,6 @@ __RCSID("$NetBSD: dr_main.c,v 1.10 2001/01/04 03:51:24 jwise Exp $");
4949
#include "extern.h"
5050
#include "driver.h"
5151

52-
int dr_main(void);
53-
5452
int
5553
dr_main(void)
5654
{

games/sail/game.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: game.c,v 1.9 2001/01/04 03:51:24 jwise Exp $ */
1+
/* $NetBSD: game.c,v 1.10 2001/02/05 01:10:09 christos Exp $ */
22

33
/*
44
* Copyright (c) 1983, 1993
@@ -38,16 +38,13 @@
3838
#if 0
3939
static char sccsid[] = "@(#)game.c 8.2 (Berkeley) 4/28/95";
4040
#else
41-
__RCSID("$NetBSD: game.c,v 1.9 2001/01/04 03:51:24 jwise Exp $");
41+
__RCSID("$NetBSD: game.c,v 1.10 2001/02/05 01:10:09 christos Exp $");
4242
#endif
4343
#endif /* not lint */
4444

4545
#include <sys/types.h>
4646
#include "extern.h"
4747

48-
int maxturns(struct ship *, char *);
49-
int maxmove(struct ship *, int, int);
50-
5148
int
5249
maxturns(struct ship *ship, char *af)
5350
{

games/sail/lo_main.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: lo_main.c,v 1.10 2001/01/16 02:44:43 cgd Exp $ */
1+
/* $NetBSD: lo_main.c,v 1.11 2001/02/05 01:10:10 christos Exp $ */
22

33
/*
44
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
3838
#if 0
3939
static char sccsid[] = "@(#)lo_main.c 8.2 (Berkeley) 4/28/95";
4040
#else
41-
__RCSID("$NetBSD: lo_main.c,v 1.10 2001/01/16 02:44:43 cgd Exp $");
41+
__RCSID("$NetBSD: lo_main.c,v 1.11 2001/02/05 01:10:10 christos Exp $");
4242
#endif
4343
#endif /* not lint */
4444

@@ -54,8 +54,6 @@ __RCSID("$NetBSD: lo_main.c,v 1.10 2001/01/16 02:44:43 cgd Exp $");
5454
#include "extern.h"
5555
#include "pathnames.h"
5656

57-
int lo_main(void);
58-
5957
const char *const title[] = {
6058
"Admiral", "Commodore", "Captain", "Captain",
6159
"Captain", "Captain", "Captain", "Commander",

games/sail/misc.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: misc.c,v 1.11 2001/01/04 06:33:18 itojun Exp $ */
1+
/* $NetBSD: misc.c,v 1.12 2001/02/05 01:10:10 christos Exp $ */
22

33
/*
44
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
3838
#if 0
3939
static char sccsid[] = "@(#)misc.c 8.2 (Berkeley) 4/28/95";
4040
#else
41-
__RCSID("$NetBSD: misc.c,v 1.11 2001/01/04 06:33:18 itojun Exp $");
41+
__RCSID("$NetBSD: misc.c,v 1.12 2001/02/05 01:10:10 christos Exp $");
4242
#endif
4343
#endif /* not lint */
4444

@@ -51,13 +51,7 @@ __RCSID("$NetBSD: misc.c,v 1.11 2001/01/04 06:33:18 itojun Exp $");
5151

5252
#define distance(x,y) (abs(x) >= abs(y) ? abs(x) + abs(y)/2 : abs(y) + abs(x)/2)
5353

54-
int range(struct ship *, struct ship *);
55-
struct ship *closestenemy(struct ship *, int, int);
5654
static int angle(int, int);
57-
int gunsbear(struct ship *, struct ship *);
58-
int portside(struct ship *, struct ship *, int);
59-
int colours(struct ship *);
60-
void logger(struct ship *);
6155

6256
/* XXX */
6357
int

games/sail/parties.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: parties.c,v 1.9 2001/01/04 03:51:24 jwise Exp $ */
1+
/* $NetBSD: parties.c,v 1.10 2001/02/05 01:10:10 christos Exp $ */
22

33
/*
44
* Copyright (c) 1983, 1993
@@ -38,17 +38,13 @@
3838
#if 0
3939
static char sccsid[] = "@(#)parties.c 8.2 (Berkeley) 4/28/95";
4040
#else
41-
__RCSID("$NetBSD: parties.c,v 1.9 2001/01/04 03:51:24 jwise Exp $");
41+
__RCSID("$NetBSD: parties.c,v 1.10 2001/02/05 01:10:10 christos Exp $");
4242
#endif
4343
#endif /* not lint */
4444

4545
#include <sys/types.h>
4646
#include "extern.h"
4747

48-
int meleeing(struct ship *, struct ship *);
49-
int boarding(struct ship *, int);
50-
void unboard(struct ship *, struct ship *, int);
51-
5248
int
5349
meleeing(struct ship *from, struct ship *to)
5450
{

games/sail/pl_1.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: pl_1.c,v 1.15 2001/01/16 02:44:43 cgd Exp $ */
1+
/* $NetBSD: pl_1.c,v 1.16 2001/02/05 01:10:10 christos Exp $ */
22

33
/*
44
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
3838
#if 0
3939
static char sccsid[] = "@(#)pl_1.c 8.1 (Berkeley) 5/31/93";
4040
#else
41-
__RCSID("$NetBSD: pl_1.c,v 1.15 2001/01/16 02:44:43 cgd Exp $");
41+
__RCSID("$NetBSD: pl_1.c,v 1.16 2001/02/05 01:10:10 christos Exp $");
4242
#endif
4343
#endif /* not lint */
4444

@@ -51,10 +51,6 @@ __RCSID("$NetBSD: pl_1.c,v 1.15 2001/01/16 02:44:43 cgd Exp $");
5151
#include "extern.h"
5252
#include "player.h"
5353

54-
void leave(int) __attribute__((__noreturn__));
55-
void choke(int) __attribute__((__noreturn__));
56-
void child(int);
57-
5854
/*
5955
* If we get here before a ship is chosen, then ms == 0 and
6056
* we don't want to update the score file, or do any Write's either.

games/sail/pl_2.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: pl_2.c,v 1.9 2001/01/04 05:34:56 jwise Exp $ */
1+
/* $NetBSD: pl_2.c,v 1.10 2001/02/05 01:10:10 christos Exp $ */
22

33
/*
44
* Copyright (c) 1983, 1993
@@ -38,16 +38,14 @@
3838
#if 0
3939
static char sccsid[] = "@(#)pl_2.c 8.1 (Berkeley) 5/31/93";
4040
#else
41-
__RCSID("$NetBSD: pl_2.c,v 1.9 2001/01/04 05:34:56 jwise Exp $");
41+
__RCSID("$NetBSD: pl_2.c,v 1.10 2001/02/05 01:10:10 christos Exp $");
4242
#endif
4343
#endif /* not lint */
4444

4545
#include <signal.h>
4646
#include "extern.h"
4747
#include "player.h"
4848

49-
void play(void) __attribute__((__noreturn__));
50-
5149
void
5250
play(void)
5351
{

games/sail/pl_3.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: pl_3.c,v 1.15 2001/01/04 06:16:51 jwise Exp $ */
1+
/* $NetBSD: pl_3.c,v 1.16 2001/02/05 01:10:10 christos Exp $ */
22

33
/*
44
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
3838
#if 0
3939
static char sccsid[] = "@(#)pl_3.c 8.1 (Berkeley) 5/31/93";
4040
#else
41-
__RCSID("$NetBSD: pl_3.c,v 1.15 2001/01/04 06:16:51 jwise Exp $");
41+
__RCSID("$NetBSD: pl_3.c,v 1.16 2001/02/05 01:10:10 christos Exp $");
4242
#endif
4343
#endif /* not lint */
4444

@@ -47,10 +47,6 @@ __RCSID("$NetBSD: pl_3.c,v 1.15 2001/01/04 06:16:51 jwise Exp $");
4747
#include "extern.h"
4848
#include "player.h"
4949

50-
void acceptcombat(void);
51-
void grapungrap(void);
52-
void unfoulplayer(void);
53-
5450
void
5551
acceptcombat(void)
5652
{

games/sail/pl_4.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: pl_4.c,v 1.12 2001/01/04 04:41:41 jwise Exp $ */
1+
/* $NetBSD: pl_4.c,v 1.13 2001/02/05 01:10:11 christos Exp $ */
22

33
/*
44
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
3838
#if 0
3939
static char sccsid[] = "@(#)pl_4.c 8.1 (Berkeley) 5/31/93";
4040
#else
41-
__RCSID("$NetBSD: pl_4.c,v 1.12 2001/01/04 04:41:41 jwise Exp $");
41+
__RCSID("$NetBSD: pl_4.c,v 1.13 2001/02/05 01:10:11 christos Exp $");
4242
#endif
4343
#endif /* not lint */
4444

@@ -47,12 +47,6 @@ __RCSID("$NetBSD: pl_4.c,v 1.12 2001/01/04 04:41:41 jwise Exp $");
4747
#include "extern.h"
4848
#include "player.h"
4949

50-
void changesail(void);
51-
void acceptsignal(void);
52-
void lookout(void);
53-
const char *saywhat(struct ship *, int);
54-
void eyeball(struct ship *);
55-
5650
void
5751
changesail(void)
5852
{

0 commit comments

Comments
 (0)