diff options
Diffstat (limited to 'usr.bin/col/col.c')
-rw-r--r-- | usr.bin/col/col.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/col/col.c b/usr.bin/col/col.c index 8d26faa..0d78d70 100644 --- a/usr.bin/col/col.c +++ b/usr.bin/col/col.c @@ -41,7 +41,11 @@ static const char copyright[] = #endif /* not lint */ #ifndef lint -static const char sccsid[] = "@(#)col.c 8.5 (Berkeley) 5/4/95"; +#if 0 +static char sccsid[] = "@(#)col.c 8.5 (Berkeley) 5/4/95"; +#endif +static const char rcsid[] = + "$FreeBSD$"; #endif /* not lint */ #include <ctype.h> @@ -146,11 +150,8 @@ main(argc, argv) compress_spaces = 1; break; case 'l': /* buffered line count */ - if ((max_bufd_lines = atoi(optarg)) <= 0) { - (void)fprintf(stderr, - "col: bad -l argument %s.\n", optarg); - exit(1); - } + if ((max_bufd_lines = atoi(optarg)) <= 0) + errx(1, "bad -l argument %s", optarg); break; case 'x': /* do not compress spaces into tabs */ compress_spaces = 0; @@ -537,8 +538,7 @@ void wrerr() { - (void)fprintf(stderr, "col: write error.\n"); - exit(1); + errx(1, "write error"); } void |