Skip to content

Commit ab046d9

Browse files
committed
KNFify again
1 parent 84f80fd commit ab046d9

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

games/adventure/extern.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: extern.h,v 1.2 1997/10/11 01:53:25 lukem Exp $ */
1+
/* $NetBSD: extern.h,v 1.3 1997/10/11 01:55:27 lukem Exp $ */
22

33
/*
44
* Copyright (c) 1997 Christos Zoulas. All rights reserved.
@@ -76,7 +76,6 @@ int restore __P((char *));
7676

7777
/* setup.c */
7878
int main __P((int, char *[]));
79-
void fatal __P((char *, int));
8079

8180
/* subr.c */
8281
int toting __P((int));

games/adventure/setup.c

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: setup.c,v 1.3 1997/10/11 01:53:35 lukem Exp $ */
1+
/* $NetBSD: setup.c,v 1.4 1997/10/11 01:55:30 lukem Exp $ */
22

33
/*-
44
* Copyright (c) 1991, 1993
@@ -46,7 +46,7 @@ static char copyright[] =
4646
#if 0
4747
static char sccsid[] = "@(#)setup.c 8.1 (Berkeley) 5/31/93";
4848
#else
49-
static char rcsid[] = "$NetBSD: setup.c,v 1.3 1997/10/11 01:53:35 lukem Exp $";
49+
static char rcsid[] = "$NetBSD: setup.c,v 1.4 1997/10/11 01:55:30 lukem Exp $";
5050
#endif
5151
#endif /* not lint */
5252

@@ -71,10 +71,9 @@ static char rcsid[] = "$NetBSD: setup.c,v 1.3 1997/10/11 01:53:35 lukem Exp $";
7171
#define YES 1
7272
#define NO 0
7373

74-
void fatal();
75-
7674
#define LINE 10 /* How many values do we get on a line? */
7775

76+
int
7877
main(argc, argv)
7978
int argc;
8079
char *argv[];
@@ -83,10 +82,10 @@ main(argc, argv)
8382
int c, count, linestart;
8483

8584
if (argc != 2)
86-
fatal(USAGE);
85+
errx(1, USAGE);
8786

8887
if ((infile = fopen(argv[1], "r")) == NULL)
89-
fatal("Can't read file %s.\n", argv[1]);
88+
err(1, "Can't read file %s.\n", argv[1]);
9089
puts("/*\n * data.c: created by setup from the ascii data file.");
9190
puts(SIG1);
9291
puts(SIG2);
@@ -120,12 +119,3 @@ main(argc, argv)
120119
fclose(infile);
121120
exit(0);
122121
}
123-
124-
125-
void
126-
fatal(format, arg)
127-
char *format;
128-
{
129-
fprintf(stderr, format, arg);
130-
exit(1);
131-
}

0 commit comments

Comments
 (0)