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/io.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cribbage/io.c') diff --git a/cribbage/io.c b/cribbage/io.c index b661f2c9..8bf6ee62 100644 --- a/cribbage/io.c +++ b/cribbage/io.c @@ -1,4 +1,4 @@ -/* $NetBSD: io.c,v 1.22 2009/06/04 04:48:04 dholland Exp $ */ +/* $NetBSD: io.c,v 1.23 2009/07/13 19:05:40 roy Exp $ */ /*- * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: io.c,v 1.22 2009/06/04 04:48:04 dholland Exp $"); +__RCSID("$NetBSD: io.c,v 1.23 2009/07/13 19:05:40 roy Exp $"); #endif #endif /* not lint */ @@ -226,7 +226,7 @@ incard(CARD *crd) retval = FALSE; rnk = sut = EMPTY; - if (!(line = getline())) + if (!(line = get_line())) goto gotit; p = p1 = line; while (*p1 != ' ' && *p1 != '\0') @@ -325,7 +325,7 @@ number(int lo, int hi, const char *prompt) for (sum = 0;;) { msg(prompt); - if (!(p = getline()) || *p == '\0') { + if (!(p = get_line()) || *p == '\0') { msg(quiet ? "Not a number" : "That doesn't look like a number"); continue; @@ -506,12 +506,12 @@ over: } /* - * getline: + * get_line: * Reads the next line up to '\n' or EOF. Multiple spaces are * compressed to one space; a space is inserted before a ',' */ char * -getline(void) +get_line(void) { char *sp; int c, oy, ox; -- cgit v1.2.3-56-ge451