diff options
author | Peter Wemm <peter@FreeBSD.org> | 1996-08-25 21:12:01 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1996-08-25 21:12:01 +0000 |
commit | ac5512704d4e6820f0a36cac8f802c40f20c58b6 (patch) | |
tree | c9475df4865da030976237416491e0d5ad8f720f /usr.bin/tail/tail.c | |
parent | 7dda79108998bd431e96f23fe4370a0ac24f31fe (diff) | |
download | src-ac5512704d4e6820f0a36cac8f802c40f20c58b6.tar.gz src-ac5512704d4e6820f0a36cac8f802c40f20c58b6.zip |
Argh! caught! *blush*.. This program was supplying it's own 'err' routine
which was slightly different to the libc one. To save any more cunfusion,
use the libc one.
Notes
Notes:
svn path=/head/; revision=17825
Diffstat (limited to 'usr.bin/tail/tail.c')
-rw-r--r-- | usr.bin/tail/tail.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tail/tail.c b/usr.bin/tail/tail.c index cc8ea143a41f..e80059081590 100644 --- a/usr.bin/tail/tail.c +++ b/usr.bin/tail/tail.c @@ -88,7 +88,7 @@ main(argc, argv) usage(); \ off = strtol(optarg, &p, 10) * (units); \ if (*p) \ - err(1, "illegal offset -- %s", optarg); \ + errx(1, "illegal offset -- %s", optarg); \ switch(optarg[0]) { \ case '+': \ if (off) \ @@ -131,7 +131,7 @@ main(argc, argv) argv += optind; if (fflag && argc > 1) - err(1, "-f option only appropriate for a single file"); + errx(1, "-f option only appropriate for a single file"); /* * If displaying in reverse, don't permit follow option, and convert @@ -234,7 +234,7 @@ obsolete(argv) /* Malloc space for dash, new option and argument. */ len = strlen(*argv); if ((start = p = malloc(len + 3)) == NULL) - err(1, "%s", strerror(errno)); + err(1, "malloc"); *p++ = '-'; /* @@ -264,7 +264,7 @@ obsolete(argv) *p++ = 'n'; break; default: - err(1, "illegal option -- %s", *argv); + errx(1, "illegal option -- %s", *argv); } *p++ = *argv[0]; (void)strcpy(p, ap); |