summaryrefslogtreecommitdiffstats
path: root/games/boggle
diff options
context:
space:
mode:
authorfgsch <fgsch@openbsd.org>2012-03-04 04:05:15 +0000
committerfgsch <fgsch@openbsd.org>2012-03-04 04:05:15 +0000
commitf9bbbf4534171e957bb7652e706dd78782fbffa2 (patch)
tree3828b3cf6a92fdae28d55bf6c8000c490e4996d0 /games/boggle
parentDocument sem_timedwait() (diff)
downloadwireguard-openbsd-f9bbbf4534171e957bb7652e706dd78782fbffa2.tar.xz
wireguard-openbsd-f9bbbf4534171e957bb7652e706dd78782fbffa2.zip
In preparation for getline and getdelim additions to libc, rename getline()
occurrences to get_line(). Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.
Diffstat (limited to 'games/boggle')
-rw-r--r--games/boggle/boggle/bog.c4
-rw-r--r--games/boggle/boggle/extern.h4
-rw-r--r--games/boggle/boggle/mach.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/games/boggle/boggle/bog.c b/games/boggle/boggle/bog.c
index 86170628925..bfaf04afa61 100644
--- a/games/boggle/boggle/bog.c
+++ b/games/boggle/boggle/bog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bog.c,v 1.20 2009/10/27 23:59:24 deraadt Exp $ */
+/* $OpenBSD: bog.c,v 1.21 2012/03/04 04:05:15 fgsch Exp $ */
/* $NetBSD: bog.c,v 1.5 1995/04/24 12:22:32 cgd Exp $ */
/*-
@@ -274,7 +274,7 @@ playgame(void)
}
while (1) {
- if (getline(buf) == NULL) {
+ if (get_line(buf) == NULL) {
if (feof(stdin))
clearerr(stdin);
break;
diff --git a/games/boggle/boggle/extern.h b/games/boggle/boggle/extern.h
index 0fc7b0d5bb8..868837ca984 100644
--- a/games/boggle/boggle/extern.h
+++ b/games/boggle/boggle/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.6 2003/06/03 03:01:39 millert Exp $ */
+/* $OpenBSD: extern.h,v 1.7 2012/03/04 04:05:15 fgsch Exp $ */
/* $NetBSD: extern.h,v 1.3 1995/04/24 12:22:37 cgd Exp $ */
/*-
@@ -42,7 +42,7 @@ void delay(int);
long dictseek(FILE *, long, int);
void findword(void);
void flushin(FILE *);
-char *getline(char *);
+char *get_line(char *);
void getword(char *);
int help(void);
int inputch(void);
diff --git a/games/boggle/boggle/mach.c b/games/boggle/boggle/mach.c
index fb16b4b269c..2c9149675a1 100644
--- a/games/boggle/boggle/mach.c
+++ b/games/boggle/boggle/mach.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mach.c,v 1.12 2009/10/27 23:59:24 deraadt Exp $ */
+/* $OpenBSD: mach.c,v 1.13 2012/03/04 04:05:15 fgsch Exp $ */
/* $NetBSD: mach.c,v 1.5 1995/04/28 22:28:48 mycroft Exp $ */
/*-
@@ -194,7 +194,7 @@ prwidth(char **base, int indx)
* - doesn't accept words longer than MAXWORDLEN or containing caps
*/
char *
-getline(char *q)
+get_line(char *q)
{
int ch, done;
char *p;