diff options
author | charnier <charnier@FreeBSD.org> | 1997-08-18 07:27:59 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-08-18 07:27:59 +0000 |
commit | 546d7b7b78b61935341e8d0e4039503b12da73de (patch) | |
tree | a9441a6133584383dc83e7fac95eb34b3966a993 /usr.bin/tset/wrterm.c | |
parent | 188deefee801bb0ba77a60dc42ecb1cb08fe4871 (diff) | |
download | FreeBSD-src-546d7b7b78b61935341e8d0e4039503b12da73de.zip FreeBSD-src-546d7b7b78b61935341e8d0e4039503b12da73de.tar.gz |
Use err(3) insteadof local redefinition. Sync usage string with man page.
Diffstat (limited to 'usr.bin/tset/wrterm.c')
-rw-r--r-- | usr.bin/tset/wrterm.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/tset/wrterm.c b/usr.bin/tset/wrterm.c index 5c33b49..d6274cf 100644 --- a/usr.bin/tset/wrterm.c +++ b/usr.bin/tset/wrterm.c @@ -32,12 +32,17 @@ */ #ifndef lint +#if 0 static char sccsid[] = "@(#)wrterm.c 8.1 (Berkeley) 6/9/93"; +#endif +static const char rcsid[] = + "$Id$"; #endif /* not lint */ #include <sys/types.h> -#include <stdio.h> #include <ctype.h> +#include <err.h> +#include <stdio.h> #include <string.h> #include "extern.h" @@ -55,7 +60,7 @@ wrtermcap(bp) /* Find the end of the terminal names. */ if ((t = index(bp, ':')) == NULL) - err("termcap names not colon terminated"); + errx(1, "termcap names not colon terminated"); *t++ = '\0'; /* Output terminal names that don't have whitespace. */ |