summaryrefslogtreecommitdiffstats
path: root/cribbage/io.c
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1997-10-10 12:26:34 +0000
committerlukem <lukem@NetBSD.org>1997-10-10 12:26:34 +0000
commit4af35eddcd99b72236d11e2354dd8fcd3b9f6e74 (patch)
treeb5301debb2cb032e91d96ad619385e02f97382bb /cribbage/io.c
parent952db1ec53b2365d68d84970049975065cd884f5 (diff)
downloadbsdgames-darwin-4af35eddcd99b72236d11e2354dd8fcd3b9f6e74.tar.gz
bsdgames-darwin-4af35eddcd99b72236d11e2354dd8fcd3b9f6e74.tar.zst
bsdgames-darwin-4af35eddcd99b72236d11e2354dd8fcd3b9f6e74.zip
WARNSify
Diffstat (limited to 'cribbage/io.c')
-rw-r--r--cribbage/io.c35
1 files changed, 18 insertions, 17 deletions
diff --git a/cribbage/io.c b/cribbage/io.c
index 452a3ecf..f73fc097 100644
--- a/cribbage/io.c
+++ b/cribbage/io.c
@@ -1,4 +1,4 @@
-/* $NetBSD: io.c,v 1.9 1997/07/09 06:25:47 phil Exp $ */
+/* $NetBSD: io.c,v 1.10 1997/10/10 12:32:32 lukem Exp $ */
/*-
* Copyright (c) 1980, 1993
@@ -33,11 +33,12 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: io.c,v 1.9 1997/07/09 06:25:47 phil Exp $";
+__RCSID("$NetBSD: io.c,v 1.10 1997/10/10 12:32:32 lukem Exp $");
#endif
#endif /* not lint */
@@ -173,7 +174,7 @@ prhand(h, n, win, blank)
WINDOW *win;
BOOLEAN blank;
{
- register int i;
+ int i;
werase(win);
for (i = 0; i < n; i++)
@@ -192,7 +193,7 @@ infrom(hand, n, prompt)
int n;
char *prompt;
{
- register int i, j;
+ int i, j;
CARD crd;
if (n < 1) {
@@ -246,7 +247,7 @@ int
incard(crd)
CARD *crd;
{
- register int i;
+ int i;
int rnk, sut;
char *line, *p, *p1;
BOOLEAN retval;
@@ -330,7 +331,7 @@ gotit:
int
getuchar()
{
- register int c;
+ int c;
c = readchar();
if (islower(c))
@@ -349,8 +350,8 @@ number(lo, hi, prompt)
int lo, hi;
char *prompt;
{
- register char *p;
- register int sum;
+ char *p;
+ int sum;
for (sum = 0;;) {
msg(prompt);
@@ -447,8 +448,8 @@ void
endmsg()
{
static int lastline = 0;
- register int len;
- register char *mp, *omp;
+ int len;
+ char *mp, *omp;
/* All messages should start with uppercase */
mvaddch(lastline + Y_MSG_START, SCORE_X, ' ');
@@ -516,9 +517,9 @@ do_wait()
*/
void
wait_for(ch)
- register int ch;
+ int ch;
{
- register char c;
+ char c;
if (ch == '\n')
while ((c = readchar()) != '\n')
@@ -535,7 +536,7 @@ wait_for(ch)
int
readchar()
{
- register int cnt;
+ int cnt;
char c;
over:
@@ -563,9 +564,9 @@ over:
char *
getline()
{
- register char *sp;
- register int c, oy, ox;
- register WINDOW *oscr;
+ char *sp;
+ int c, oy, ox;
+ WINDOW *oscr;
oscr = stdscr;
stdscr = Msgwin;
@@ -578,7 +579,7 @@ getline()
else
if (c == erasechar()) { /* process erase character */
if (sp > linebuf) {
- register int i;
+ int i;
sp--;
for (i = strlen(unctrl(*sp)); i; i--)