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 $ */
2
2
3
3
/*-
4
4
* Copyright (c) 1991, 1993
@@ -46,7 +46,7 @@ static char copyright[] =
46
46
#if 0
47
47
static char sccsid [] = "@(#)setup.c 8.1 (Berkeley) 5/31/93" ;
48
48
#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 $" ;
50
50
#endif
51
51
#endif /* not lint */
52
52
@@ -71,10 +71,9 @@ static char rcsid[] = "$NetBSD: setup.c,v 1.3 1997/10/11 01:53:35 lukem Exp $";
71
71
#define YES 1
72
72
#define NO 0
73
73
74
- void fatal ();
75
-
76
74
#define LINE 10 /* How many values do we get on a line? */
77
75
76
+ int
78
77
main (argc , argv )
79
78
int argc ;
80
79
char * argv [];
@@ -83,10 +82,10 @@ main(argc, argv)
83
82
int c , count , linestart ;
84
83
85
84
if (argc != 2 )
86
- fatal ( USAGE );
85
+ errx ( 1 , USAGE );
87
86
88
87
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 ]);
90
89
puts ("/*\n * data.c: created by setup from the ascii data file." );
91
90
puts (SIG1 );
92
91
puts (SIG2 );
@@ -120,12 +119,3 @@ main(argc, argv)
120
119
fclose (infile );
121
120
exit (0 );
122
121
}
123
-
124
-
125
- void
126
- fatal (format , arg )
127
- char * format ;
128
- {
129
- fprintf (stderr , format , arg );
130
- exit (1 );
131
- }
0 commit comments