summaryrefslogtreecommitdiffstats
path: root/backgammon/common_source/subs.c
diff options
context:
space:
mode:
Diffstat (limited to 'backgammon/common_source/subs.c')
-rw-r--r--backgammon/common_source/subs.c52
1 files changed, 21 insertions, 31 deletions
diff --git a/backgammon/common_source/subs.c b/backgammon/common_source/subs.c
index 1daeb72e..a95e4813 100644
--- a/backgammon/common_source/subs.c
+++ b/backgammon/common_source/subs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: subs.c,v 1.14 2003/08/07 09:36:57 agc Exp $ */
+/* $NetBSD: subs.c,v 1.15 2005/07/01 01:12:39 jmc Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)subs.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: subs.c,v 1.14 2003/08/07 09:36:57 agc Exp $");
+__RCSID("$NetBSD: subs.c,v 1.15 2005/07/01 01:12:39 jmc Exp $");
#endif
#endif /* not lint */
@@ -61,8 +61,7 @@ const char *const descr[] = {
};
void
-errexit(s)
- const char *s;
+errexit(const char *s)
{
write(2, "\n", 1);
perror(s);
@@ -70,8 +69,7 @@ errexit(s)
}
int
-addbuf(c)
- int c;
+addbuf(int c)
{
buffnum++;
if (buffnum == BUFSIZ) {
@@ -84,7 +82,7 @@ addbuf(c)
}
void
-buflush()
+buflush(void)
{
if (buffnum < 0)
return;
@@ -95,7 +93,7 @@ buflush()
}
int
-readc()
+readc(void)
{
char c;
@@ -122,8 +120,7 @@ readc()
}
void
-writec(c)
- char c;
+writec(int c)
{
if (tflag)
fancyc(c);
@@ -132,8 +129,7 @@ writec(c)
}
void
-writel(l)
- const char *l;
+writel(const char *l)
{
#ifdef DEBUG
const char *s;
@@ -157,7 +153,7 @@ writel(l)
}
void
-proll()
+proll(void)
{
if (d0)
swap;
@@ -173,8 +169,7 @@ proll()
}
void
-wrint(n)
- int n;
+wrint(int n)
{
int i, j, t;
@@ -189,7 +184,7 @@ wrint(n)
}
void
-gwrite()
+gwrite(void)
{
int r, c;
@@ -232,7 +227,7 @@ gwrite()
}
int
-quit()
+quit(void)
{
if (tflag) {
@@ -254,8 +249,7 @@ quit()
}
int
-yorn(special)
- char special; /* special response */
+yorn(int special)
{
char c;
int i;
@@ -285,8 +279,7 @@ yorn(special)
}
void
-wrhit(i)
- int i;
+wrhit(int i)
{
writel("Blot hit on ");
wrint(i);
@@ -295,7 +288,7 @@ wrhit(i)
}
void
-nexturn()
+nexturn(void)
{
int c;
@@ -312,8 +305,7 @@ nexturn()
}
void
-getarg(arg)
- char ***arg;
+getarg(char ***arg)
{
char **s;
@@ -399,7 +391,7 @@ getarg(arg)
}
void
-init()
+init(void)
{
int i;
@@ -418,7 +410,7 @@ init()
}
void
-wrscore()
+wrscore(void)
{
writel("Score: ");
writel(color[1]);
@@ -431,8 +423,7 @@ wrscore()
}
void
-fixtty(t)
- struct termios *t;
+fixtty(struct termios *t)
{
if (tflag)
newpos();
@@ -442,8 +433,7 @@ fixtty(t)
}
void
-getout(dummy)
- int dummy __attribute__((__unused__));
+getout(int dummy __attribute__((__unused__)))
{
/* go to bottom of screen */
if (tflag) {
@@ -458,7 +448,7 @@ getout(dummy)
}
void
-roll()
+roll(void)
{
char c;
int row;