diff options
author | lukem <lukem@NetBSD.org> | 1997-10-11 02:44:30 +0000 |
---|---|---|
committer | lukem <lukem@NetBSD.org> | 1997-10-11 02:44:30 +0000 |
commit | b32b454ffc6a722c38a510f10d856e6c504579cf (patch) | |
tree | 4f07f6eab92478749eaa0e9ffe19ff92e0d3ecf5 /cribbage/crib.c | |
parent | a87ba0acdd3c42a9ecd07a46a71fa720f1fac0b0 (diff) | |
download | bsdgames-darwin-b32b454ffc6a722c38a510f10d856e6c504579cf.tar.gz bsdgames-darwin-b32b454ffc6a722c38a510f10d856e6c504579cf.tar.zst bsdgames-darwin-b32b454ffc6a722c38a510f10d856e6c504579cf.zip |
minor KNFify
Diffstat (limited to 'cribbage/crib.c')
-rw-r--r-- | cribbage/crib.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/cribbage/crib.c b/cribbage/crib.c index 696c86b2..ce8778f4 100644 --- a/cribbage/crib.c +++ b/cribbage/crib.c @@ -1,4 +1,4 @@ -/* $NetBSD: crib.c,v 1.8 1997/10/10 12:32:24 lukem Exp $ */ +/* $NetBSD: crib.c,v 1.9 1997/10/11 02:44:30 lukem Exp $ */ /*- * Copyright (c) 1980, 1993 @@ -43,11 +43,12 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)crib.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: crib.c,v 1.8 1997/10/10 12:32:24 lukem Exp $"); +__RCSID("$NetBSD: crib.c,v 1.9 1997/10/11 02:44:30 lukem Exp $"); #endif #endif /* not lint */ #include <curses.h> +#include <err.h> #include <signal.h> #include <stdlib.h> #include <string.h> @@ -134,11 +135,8 @@ main(argc, argv) (void) fclose(f); } bye(); - if (!f) { - (void) fprintf(stderr, "\ncribbage: can't open %s.\n", - _PATH_LOG); - exit(1); - } + if (!f) + errx(1, "can't open %s", _PATH_LOG); exit(0); } |