From 1a8f73c921695fb365fd62992e90e8d40e94343a Mon Sep 17 00:00:00 2001 From: roy Date: Mon, 13 Jul 2009 19:05:39 +0000 Subject: Rename internal getline() function to get_line() so it does conflict with the soon to be added getline(3) libc function. --- cribbage/crib.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cribbage/crib.c') 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]; -- cgit v1.2.3-56-ge451