summaryrefslogtreecommitdiffstats
path: root/usr.bin/msgs
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1998-07-07 22:20:50 +0000
committerjkh <jkh@FreeBSD.org>1998-07-07 22:20:50 +0000
commitecf8fb250c756b3233ebcd5bf640bb3170c6c4fe (patch)
tree7e67655787196d9d238dc3a02a22e6d49e7f5c42 /usr.bin/msgs
parent22b96f293f376110568d4464a1e54fc9731d418a (diff)
downloadFreeBSD-src-ecf8fb250c756b3233ebcd5bf640bb3170c6c4fe.zip
FreeBSD-src-ecf8fb250c756b3233ebcd5bf640bb3170c6c4fe.tar.gz
Previous fix didn't make it past the Bruce filter. Clean up
non-KNF indentation and use err() properly.
Diffstat (limited to 'usr.bin/msgs')
-rw-r--r--usr.bin/msgs/msgs.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/msgs/msgs.c b/usr.bin/msgs/msgs.c
index 1bc3712..033a767 100644
--- a/usr.bin/msgs/msgs.c
+++ b/usr.bin/msgs/msgs.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)msgs.c 8.2 (Berkeley) 4/28/95";
#endif
static const char rcsid[] =
- "$Id: msgs.c,v 1.9 1997/07/29 06:47:18 charnier Exp $";
+ "$Id: msgs.c,v 1.10 1998/07/07 12:02:59 jkh Exp $";
#endif /* not lint */
/*
@@ -246,10 +246,7 @@ int argc; char *argv[];
*/
snprintf(fname, sizeof(fname), "%s/%s", _PATH_MSGS, BOUNDS);
if (stat(fname, &buf) < 0)
- {
- perror(fname);
- exit(1);
- }
+ err(errno, "%s", fname);
bounds = fopen(fname, "r");
if (bounds != NULL) {
OpenPOWER on IntegriCloud