summaryrefslogtreecommitdiffstats
path: root/cribbage/crib.c
diff options
context:
space:
mode:
authorroy <roy@NetBSD.org>2009-07-13 19:05:39 +0000
committerroy <roy@NetBSD.org>2009-07-13 19:05:39 +0000
commit1a8f73c921695fb365fd62992e90e8d40e94343a (patch)
tree447f607459addcce932c00ca52c03ac9e462c321 /cribbage/crib.c
parent1f35120ec096783ec21160ac00f22c0fb221a918 (diff)
downloadbsdgames-darwin-1a8f73c921695fb365fd62992e90e8d40e94343a.tar.gz
bsdgames-darwin-1a8f73c921695fb365fd62992e90e8d40e94343a.tar.zst
bsdgames-darwin-1a8f73c921695fb365fd62992e90e8d40e94343a.zip
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
Diffstat (limited to 'cribbage/crib.c')
-rw-r--r--cribbage/crib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cribbage/crib.c b/cribbage/crib.c
index ee8e2d6f..75d5d77d 100644
--- a/cribbage/crib.c
+++ b/cribbage/crib.c
@@ -1,4 +1,4 @@
-/* $NetBSD: crib.c,v 1.22 2008/08/08 16:10:47 drochner Exp $ */
+/* $NetBSD: crib.c,v 1.23 2009/07/13 19:05:40 roy Exp $ */
/*-
* Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\
#if 0
static char sccsid[] = "@(#)crib.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: crib.c,v 1.22 2008/08/08 16:10:47 drochner Exp $");
+__RCSID("$NetBSD: crib.c,v 1.23 2009/07/13 19:05:40 roy Exp $");
#endif
#endif /* not lint */
@@ -218,7 +218,7 @@ game(void)
if (!rflag) { /* player cuts deck */
msg(quiet ? "Cut for crib? " :
"Cut to see whose crib it is -- low card wins? ");
- getline();
+ get_line();
}
i = (rand() >> 4) % CARDS; /* random cut */
do { /* comp cuts deck */
@@ -389,7 +389,7 @@ cut(BOOLEAN mycrib, int pos)
if (!rflag) { /* random cut */
msg(quiet ? "Cut the deck? " :
"How many cards down do you wish to cut the deck? ");
- getline();
+ get_line();
}
i = (rand() >> 4) % (CARDS - pos);
turnover = deck[i + pos];