summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>2004-01-26 09:58:35 +0000
committerjsm <jsm@NetBSD.org>2004-01-26 09:58:35 +0000
commit6267dec9c994556fa09a1f244c8dea227a3bfd21 (patch)
tree3fe31a1f33d7de5d66ab821c0868b409d262374d
parent2cf7b416821e2d2059bd77eeb013ebc917c09073 (diff)
downloadbsdgames-darwin-6267dec9c994556fa09a1f244c8dea227a3bfd21.tar.gz
bsdgames-darwin-6267dec9c994556fa09a1f244c8dea227a3bfd21.tar.zst
bsdgames-darwin-6267dec9c994556fa09a1f244c8dea227a3bfd21.zip
Rename rint to receive_intr to avoid conflict with GCC 3.4 built-in C99
function.
-rw-r--r--cribbage/crib.c6
-rw-r--r--cribbage/cribbage.h4
-rw-r--r--cribbage/io.c6
3 files changed, 8 insertions, 8 deletions
diff --git a/cribbage/crib.c b/cribbage/crib.c
index 2fec863c..0581c018 100644
--- a/cribbage/crib.c
+++ b/cribbage/crib.c
@@ -1,4 +1,4 @@
-/* $NetBSD: crib.c,v 1.17 2003/08/07 09:37:09 agc Exp $ */
+/* $NetBSD: crib.c,v 1.18 2004/01/26 09:58:35 jsm Exp $ */
/*-
* Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
#if 0
static char sccsid[] = "@(#)crib.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: crib.c,v 1.17 2003/08/07 09:37:09 agc Exp $");
+__RCSID("$NetBSD: crib.c,v 1.18 2004/01/26 09:58:35 jsm Exp $");
#endif
#endif /* not lint */
@@ -107,7 +107,7 @@ main(argc, argv)
}
initscr();
- (void)signal(SIGINT, rint);
+ (void)signal(SIGINT, receive_intr);
cbreak();
noecho();
diff --git a/cribbage/cribbage.h b/cribbage/cribbage.h
index c9b45c17..978ae135 100644
--- a/cribbage/cribbage.h
+++ b/cribbage/cribbage.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cribbage.h,v 1.9 2003/08/07 09:37:09 agc Exp $ */
+/* $NetBSD: cribbage.h,v 1.10 2004/01/26 09:58:35 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -102,7 +102,7 @@ void printcard __P((WINDOW *, int, CARD, BOOLEAN));
void prpeg __P((int, int, BOOLEAN));
void prtable __P((int));
int readchar __P((void));
-void rint __P((int)) __attribute__((__noreturn__));
+void receive_intr __P((int)) __attribute__((__noreturn__));
int score __P((BOOLEAN));
int scorehand __P((const CARD [], CARD, int, BOOLEAN, BOOLEAN));
void shuffle __P((CARD []));
diff --git a/cribbage/io.c b/cribbage/io.c
index 422b02da..591e0c43 100644
--- a/cribbage/io.c
+++ b/cribbage/io.c
@@ -1,4 +1,4 @@
-/* $NetBSD: io.c,v 1.16 2003/08/07 09:37:10 agc Exp $ */
+/* $NetBSD: io.c,v 1.17 2004/01/26 09:58:35 jsm 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.16 2003/08/07 09:37:10 agc Exp $");
+__RCSID("$NetBSD: io.c,v 1.17 2004/01/26 09:58:35 jsm Exp $");
#endif
#endif /* not lint */
@@ -582,7 +582,7 @@ getline()
}
void
-rint(signo)
+receive_intr(signo)
int signo __attribute__((__unused__));
{
bye();