diff options
author | David Coppa <dcoppa@cvs.openbsd.org> | 2010-11-03 12:51:11 +0000 |
---|---|---|
committer | David Coppa <dcoppa@cvs.openbsd.org> | 2010-11-03 12:51:11 +0000 |
commit | 04bce8357ba512d76a70e072606f6fae4370e22e (patch) | |
tree | b96a98e35dc7394e42135006c240166943c9d311 /games/cribbage | |
parent | 7cee88a305f7706ee832a3f5bcd14db071ba7e40 (diff) |
fix errx() usage.
OK henning@
Diffstat (limited to 'games/cribbage')
-rw-r--r-- | games/cribbage/support.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/games/cribbage/support.c b/games/cribbage/support.c index 93d02349853..2bd8a5851b0 100644 --- a/games/cribbage/support.c +++ b/games/cribbage/support.c @@ -1,4 +1,4 @@ -/* $OpenBSD: support.c,v 1.11 2009/10/27 23:59:24 deraadt Exp $ */ +/* $OpenBSD: support.c,v 1.12 2010/11/03 12:51:10 dcoppa Exp $ */ /* $NetBSD: support.c,v 1.3 1995/03/21 15:08:59 cgd Exp $ */ /*- @@ -31,6 +31,7 @@ */ #include <curses.h> +#include <err.h> #include <string.h> #include "deck.h" @@ -107,7 +108,7 @@ cchose(CARD h[], int n, int s) } } if (j < 0) - errx("cchose internal error %d %d", j, n); + errx(1, "cchose internal error %d %d", j, n); return (j); } |