diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-10-04 15:27:22 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-10-04 15:27:22 +0000 |
commit | f09387f94fec9aac0c08cfba8ac96249b35ada12 (patch) | |
tree | e187ead6d74761920b7e9cd38d1907cf6e7e0f9d /usr.bin/indent/io.c | |
parent | f18b593531766f7f7230bc4cdeb50045d2a6cdd6 (diff) |
fprintf+exit vs errx
Diffstat (limited to 'usr.bin/indent/io.c')
-rw-r--r-- | usr.bin/indent/io.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.bin/indent/io.c b/usr.bin/indent/io.c index fe32c8f4d9a..71ecbd71b3e 100644 --- a/usr.bin/indent/io.c +++ b/usr.bin/indent/io.c @@ -1,4 +1,4 @@ -/* $OpenBSD: io.c,v 1.5 2002/02/19 19:39:38 millert Exp $ */ +/* $OpenBSD: io.c,v 1.6 2002/10/04 15:27:21 mickey Exp $ */ /* * Copyright (c) 1985 Sun Microsystems, Inc. @@ -37,7 +37,7 @@ #ifndef lint /*static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 6/6/93";*/ -static char rcsid[] = "$OpenBSD: io.c,v 1.5 2002/02/19 19:39:38 millert Exp $"; +static char rcsid[] = "$OpenBSD: io.c,v 1.6 2002/10/04 15:27:21 mickey Exp $"; #endif /* not lint */ #include <stdio.h> @@ -625,10 +625,8 @@ parsefont(f, s0) sizedelta++; else if (*s == '-') sizedelta--; - else { - fprintf(stderr, "indent: bad font specification: %s\n", s0); - exit(1); - } + else + errx(1, "bad font specification: %s", s0); s++; } if (f->font[0] == 0) |