diff options
Diffstat (limited to 'games/gomoku')
-rw-r--r-- | games/gomoku/bdisp.c | 4 | ||||
-rw-r--r-- | games/gomoku/gomoku.h | 4 | ||||
-rw-r--r-- | games/gomoku/main.c | 14 |
3 files changed, 11 insertions, 11 deletions
diff --git a/games/gomoku/bdisp.c b/games/gomoku/bdisp.c index d6fb0c6aead..0fe37506ed1 100644 --- a/games/gomoku/bdisp.c +++ b/games/gomoku/bdisp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bdisp.c,v 1.10 2009/10/27 23:59:24 deraadt Exp $ */ +/* $OpenBSD: bdisp.c,v 1.11 2012/03/04 04:05:15 fgsch Exp $ */ /* * Copyright (c) 1994 * The Regents of the University of California. All rights reserved. @@ -248,7 +248,7 @@ ask(str) } int -getline(buf, size) +get_line(buf, size) char *buf; int size; { diff --git a/games/gomoku/gomoku.h b/games/gomoku/gomoku.h index e5d6b5360e4..b9b58684161 100644 --- a/games/gomoku/gomoku.h +++ b/games/gomoku/gomoku.h @@ -1,4 +1,4 @@ -/* $OpenBSD: gomoku.h,v 1.9 2004/01/16 00:13:19 espie Exp $ */ +/* $OpenBSD: gomoku.h,v 1.10 2012/03/04 04:05:15 fgsch Exp $ */ /* * Copyright (c) 1994 * The Regents of the University of California. All rights reserved. @@ -285,7 +285,7 @@ void cursinit(void); void dislog(char *); void dlog(char *); int getcoord(void); -int getline(char *, int); +int get_line(char *, int); void init_overlap(void); #ifdef DEBUG int list_eq(struct combostr **, struct combostr **, int); diff --git a/games/gomoku/main.c b/games/gomoku/main.c index aeb8f56b0f8..c516fc58a48 100644 --- a/games/gomoku/main.c +++ b/games/gomoku/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.22 2009/10/27 23:59:24 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.23 2012/03/04 04:05:15 fgsch Exp $ */ /* * Copyright (c) 1994 * The Regents of the University of California. All rights reserved. @@ -162,7 +162,7 @@ again: } } else { setbuf(stdout, 0); - getline(buf, sizeof(buf)); + get_line(buf, sizeof(buf)); if (strcmp(buf, "black") == 0) color = BLACK; else if (strcmp(buf, "white") == 0) @@ -239,7 +239,7 @@ again: FILE *fp; ask("save file name? "); - (void)getline(fname, sizeof(fname)); + (void)get_line(fname, sizeof(fname)); if ((fp = fopen(fname, "w")) == NULL) { logit("cannot create save file"); goto getinput; @@ -257,7 +257,7 @@ again: goto getinput; } } else { - if (!getline(buf, sizeof(buf))) { + if (!get_line(buf, sizeof(buf))) { curmove = RESIGN; break; } @@ -307,14 +307,14 @@ again: if (i != RESIGN) { replay: ask("replay? "); - if (getline(buf, sizeof(buf)) && + if (get_line(buf, sizeof(buf)) && (buf[0] == 'y' || buf[0] == 'Y')) goto again; if (strcmp(buf, "save") == 0) { FILE *fp; ask("save file name? "); - (void)getline(buf, sizeof(buf)); + (void)get_line(buf, sizeof(buf)); if ((fp = fopen(buf, "w")) == NULL) { logit("cannot create save file"); goto replay; @@ -364,7 +364,7 @@ whatsup(signum) quit(0); top: ask("cmd? "); - if (!getline(fmtbuf, sizeof(fmtbuf))) + if (!get_line(fmtbuf, sizeof(fmtbuf))) quit(0); switch (*fmtbuf) { case '\0': |