diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-07-20 20:02:20 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-07-20 20:02:20 +0000 |
commit | ef826f0b5ffeaa445c6745085807d5108d0663e2 (patch) | |
tree | b8eab24c4bb86b2bf2392e12cd5b3f6e0e6bec21 | |
parent | c61ec81d4336fe5de295043fa973621feac8cd92 (diff) |
use warnx()
-rw-r--r-- | usr.bin/sort/sort.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/sort/sort.c b/usr.bin/sort/sort.c index 3aefc723512..d62c6c8e727 100644 --- a/usr.bin/sort/sort.c +++ b/usr.bin/sort/sort.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sort.c,v 1.9 1998/07/20 19:49:32 deraadt Exp $ */ +/* $OpenBSD: sort.c,v 1.10 1998/07/20 20:02:19 mickey Exp $ */ /*- * Copyright (c) 1993 @@ -46,7 +46,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)sort.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: sort.c,v 1.9 1998/07/20 19:49:32 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: sort.c,v 1.10 1998/07/20 20:02:19 mickey Exp $"; #endif #endif /* not lint */ @@ -65,6 +65,7 @@ static char rcsid[] = "$OpenBSD: sort.c,v 1.9 1998/07/20 19:49:32 deraadt Exp $" #include <stdlib.h> #include <string.h> #include <unistd.h> +#include <err.h> int REC_D = '\n'; u_char d_mask[NBINS]; /* flags for rec_d, field_d, <blank> */ @@ -311,7 +312,7 @@ usage(msg) extern char *__progname; if (msg) - (void)fprintf(stderr, "sort: %s\n", msg); + warnx(msg); (void)fprintf(stderr, "usage: %s [-T dir] [-o output] [-cmubdfinr] " "[-t char] [-R char] [-k keydef] ... [files]\n", __progname); exit(2); |