aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/col/col.c
diff options
context:
space:
mode:
authorPhilippe Charnier <charnier@FreeBSD.org>2000-03-26 14:23:23 +0000
committerPhilippe Charnier <charnier@FreeBSD.org>2000-03-26 14:23:23 +0000
commita292105ac8bc663262b6107040a6adc9349cc28e (patch)
treefee6dd24dec42d0b57403fb42495bcdbf7437ead /usr.bin/col/col.c
parent884bd44c595af344a00b11c4ebe9ac45470213c2 (diff)
downloadsrc-a292105ac8bc663262b6107040a6adc9349cc28e.tar.gz
src-a292105ac8bc663262b6107040a6adc9349cc28e.zip
Use errx(). .Nm fixes
Notes
Notes: svn path=/head/; revision=58602
Diffstat (limited to 'usr.bin/col/col.c')
-rw-r--r--usr.bin/col/col.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/col/col.c b/usr.bin/col/col.c
index 8d26faadc0a0..0d78d70b1310 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