summaryrefslogtreecommitdiffstats
path: root/canfield/cfscores
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2010-01-01 06:37:15 +0000
committerdholland <dholland@NetBSD.org>2010-01-01 06:37:15 +0000
commit1a8fc91442c8771d5e18b5207ce9e702c4e6ece3 (patch)
tree0b5c9bf9b63acf17d98a9f48444733bc1083d548 /canfield/cfscores
parent935215e3fc8ec9628ca535a7d7eb50dfd7eed978 (diff)
downloadbsdgames-darwin-1a8fc91442c8771d5e18b5207ce9e702c4e6ece3.tar.gz
bsdgames-darwin-1a8fc91442c8771d5e18b5207ce9e702c4e6ece3.tar.zst
bsdgames-darwin-1a8fc91442c8771d5e18b5207ce9e702c4e6ece3.zip
Split struct betinfo into its own header file so it can be shared
between canfield and cfscores, instead of copy-pasted.
Diffstat (limited to 'canfield/cfscores')
-rw-r--r--canfield/cfscores/cfscores.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/canfield/cfscores/cfscores.c b/canfield/cfscores/cfscores.c
index 54d57a14..33f6e97f 100644
--- a/canfield/cfscores/cfscores.c
+++ b/canfield/cfscores/cfscores.c
@@ -1,4 +1,4 @@
-/* $NetBSD: cfscores.c,v 1.19 2010/01/01 06:31:18 dholland Exp $ */
+/* $NetBSD: cfscores.c,v 1.20 2010/01/01 06:37:16 dholland Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\
#if 0
static char sccsid[] = "@(#)cfscores.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: cfscores.c,v 1.19 2010/01/01 06:31:18 dholland Exp $");
+__RCSID("$NetBSD: cfscores.c,v 1.20 2010/01/01 06:37:16 dholland Exp $");
#endif
#endif /* not lint */
@@ -51,19 +51,9 @@ __RCSID("$NetBSD: cfscores.c,v 1.19 2010/01/01 06:31:18 dholland Exp $");
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include "betinfo.h"
#include "pathnames.h"
-struct betinfo {
- long hand; /* cost of dealing hand */
- long inspection; /* cost of inspecting hand */
- long game; /* cost of buying game */
- long runs; /* cost of running through hands */
- long information; /* cost of information */
- long thinktime; /* cost of thinking time */
- long wins; /* total winnings */
- long worth; /* net worth after costs */
-};
-
static int dbfd;
static void printuser(const struct passwd *, int);