summaryrefslogtreecommitdiff
path: root/games/gomoku/bdisp.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/gomoku/bdisp.c')
-rw-r--r--games/gomoku/bdisp.c26
1 files changed, 10 insertions, 16 deletions
diff --git a/games/gomoku/bdisp.c b/games/gomoku/bdisp.c
index e649f658162..d583ff840db 100644
--- a/games/gomoku/bdisp.c
+++ b/games/gomoku/bdisp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bdisp.c,v 1.12 2016/01/04 17:33:24 mestre Exp $ */
+/* $OpenBSD: bdisp.c,v 1.13 2016/01/08 21:38:33 mestre Exp $ */
/*
* Copyright (c) 1994
* The Regents of the University of California. All rights reserved.
@@ -47,7 +47,7 @@ static char pcolor[] = "*O.?";
* Initialize screen display.
*/
void
-cursinit()
+cursinit(void)
{
initscr();
if ((LINES < SCRNH) || (COLS < SCRNW)) {
@@ -70,7 +70,7 @@ cursinit()
* Restore screen display.
*/
void
-cursfini()
+cursfini(void)
{
move(BSZ4, 0);
clrtoeol();
@@ -83,7 +83,7 @@ cursfini()
* Initialize board display.
*/
void
-bdisp_init()
+bdisp_init(void)
{
int i, j;
@@ -115,8 +115,7 @@ bdisp_init()
* Update who is playing whom.
*/
void
-bdwho(update)
- int update;
+bdwho(int update)
{
int i, j;
extern char *plyr[];
@@ -148,7 +147,7 @@ bdwho(update)
* Update the board display after a move.
*/
void
-bdisp()
+bdisp(void)
{
int i, j, c;
struct spotstr *sp;
@@ -176,8 +175,7 @@ bdisp()
/*
* Dump board display to a file.
*/
-void bdump(fp)
- FILE *fp;
+void bdump(FILE *fp)
{
int i, j, c;
struct spotstr *sp;
@@ -215,8 +213,7 @@ void bdump(fp)
* Display a transcript entry
*/
void
-dislog(str)
- char *str;
+dislog(char *str)
{
if (++lastline >= SCRNH - 1) {
@@ -236,8 +233,7 @@ dislog(str)
* Display a question.
*/
void
-ask(str)
- char *str;
+ask(char *str)
{
int len = strlen(str);
@@ -249,9 +245,7 @@ ask(str)
}
int
-get_line(buf, size)
- char *buf;
- int size;
+get_line(char *buf, int size)
{
char *cp, *end;
int c = EOF;