From 1a8fc91442c8771d5e18b5207ce9e702c4e6ece3 Mon Sep 17 00:00:00 2001 From: dholland Date: Fri, 1 Jan 2010 06:37:15 +0000 Subject: Split struct betinfo into its own header file so it can be shared between canfield and cfscores, instead of copy-pasted. --- canfield/cfscores/cfscores.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'canfield/cfscores') 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 #include #include +#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); -- cgit v1.2.3-56-ge451