summaryrefslogtreecommitdiffstats
path: root/boggle
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2021-05-02 12:50:43 +0000
committerCameron Katri <me@cameronkatri.com>2021-05-05 14:56:21 -0400
commit1c75ca2e2dc72d118edbb854455e602d70d80a52 (patch)
treea815eb983fa15e7c407095122e37acb90093be9a /boggle
parent2442661e769456700d67fac92056d18b3046633e (diff)
downloadbsdgames-darwin-1c75ca2e2dc72d118edbb854455e602d70d80a52.tar.gz
bsdgames-darwin-1c75ca2e2dc72d118edbb854455e602d70d80a52.tar.zst
bsdgames-darwin-1c75ca2e2dc72d118edbb854455e602d70d80a52.zip
games: remove trailing whitespace in *.c and *.h
Diffstat (limited to 'boggle')
-rw-r--r--boggle/boggle/extern.h4
-rw-r--r--boggle/boggle/mach.c14
-rw-r--r--boggle/boggle/word.c14
-rw-r--r--boggle/mkdict/mkdict.c6
-rw-r--r--boggle/mkindex/mkindex.c6
5 files changed, 22 insertions, 22 deletions
diff --git a/boggle/boggle/extern.h b/boggle/boggle/extern.h
index ee9a3407..fe720439 100644
--- a/boggle/boggle/extern.h
+++ b/boggle/boggle/extern.h
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.11 2009/08/12 05:29:40 dholland Exp $ */
+/* $NetBSD: extern.h,v 1.12 2021/05/02 12:50:43 rillig Exp $ */
/*-
* Copyright (c) 1993
@@ -50,7 +50,7 @@ char *nextword(FILE *);
FILE *opendict(const char *);
void prompt(const char *);
void prtable(const char *const [],
- int, int, int, void (*)(const char *const [], int),
+ int, int, int, void (*)(const char *const [], int),
int (*)(const char *const [], int));
void redraw(void);
void results(void);
diff --git a/boggle/boggle/mach.c b/boggle/boggle/mach.c
index d9f9e348..8bb48182 100644
--- a/boggle/boggle/mach.c
+++ b/boggle/boggle/mach.c
@@ -1,4 +1,4 @@
-/* $NetBSD: mach.c,v 1.21 2011/08/31 16:24:55 plunky Exp $ */
+/* $NetBSD: mach.c,v 1.22 2021/05/02 12:50:43 rillig Exp $ */
/*-
* Copyright (c) 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)mach.c 8.1 (Berkeley) 6/11/93";
#else
-__RCSID("$NetBSD: mach.c,v 1.21 2011/08/31 16:24:55 plunky Exp $");
+__RCSID("$NetBSD: mach.c,v 1.22 2021/05/02 12:50:43 rillig Exp $");
#endif
#endif /* not lint */
@@ -141,7 +141,7 @@ results(void)
denom1 = npwords + nmwords;
denom2 = tnpwords + tnmwords;
-
+
move(SCORE_LINE, SCORE_COL);
printw("Percentage: %0.2f%% (%0.2f%% over %d game%s)\n",
denom1 ? (100.0 * npwords) / (double) (npwords + nmwords) : 0.0,
@@ -441,7 +441,7 @@ findword(void)
if (board[wordpath[i]] == 'q')
printw("Qu");
else
- printw("%c",
+ printw("%c",
toupper((unsigned char)board[wordpath[i]]));
move(r, c);
refresh();
@@ -457,7 +457,7 @@ findword(void)
if (board[wordpath[i]] == 'q')
printw("Qu");
else
- printw("%c",
+ printw("%c",
toupper((unsigned char)board[wordpath[i]]));
}
move(r, c);
@@ -597,7 +597,7 @@ stop_catcher(int signo __unused)
sigprocmask(SIG_SETMASK, &osigset, (sigset_t *)0);
signal(SIGTSTP, stop_catcher);
}
-
+
static void
cont_catcher(int signo __unused)
{
@@ -608,7 +608,7 @@ cont_catcher(int signo __unused)
refresh();
starttime();
}
-
+
/*
* The signal is caught but nothing is done about it...
* It would mean reformatting the entire display
diff --git a/boggle/boggle/word.c b/boggle/boggle/word.c
index abcc4796..4770c141 100644
--- a/boggle/boggle/word.c
+++ b/boggle/boggle/word.c
@@ -1,4 +1,4 @@
-/* $NetBSD: word.c,v 1.9 2006/03/18 09:40:46 rtr Exp $ */
+/* $NetBSD: word.c,v 1.10 2021/05/02 12:50:43 rillig Exp $ */
/*-
* Copyright (c) 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)word.c 8.1 (Berkeley) 6/11/93";
#else
-__RCSID("$NetBSD: word.c,v 1.9 2006/03/18 09:40:46 rtr Exp $");
+__RCSID("$NetBSD: word.c,v 1.10 2021/05/02 12:50:43 rillig Exp $");
#endif
#endif /* not lint */
@@ -74,7 +74,7 @@ nextword(FILE *fp)
if (fp == NULL) {
if (sp == dictend)
return (NULL);
-
+
p = buf + (int) *sp++;
/*
@@ -92,7 +92,7 @@ nextword(FILE *fp)
return (NULL);
p = buf + pcount;
-
+
while ((ch = getc(fp)) != EOF && ch >= 'a')
if ((*p++ = ch) == 'q')
*p++ = 'u';
@@ -102,7 +102,7 @@ nextword(FILE *fp)
*p = '\0';
return (buf);
}
-
+
/*
* Reset the state of nextword() and do the fseek()
*/
@@ -184,7 +184,7 @@ loadindex(const char *indexfile)
int i, j;
char buf[BUFSIZ];
FILE *fp;
-
+
if ((fp = fopen(indexfile, "r")) == NULL) {
warn("Can't open '%s'", indexfile);
return (-1);
@@ -212,4 +212,4 @@ loadindex(const char *indexfile)
return(-1);
}
return(0);
-}
+}
diff --git a/boggle/mkdict/mkdict.c b/boggle/mkdict/mkdict.c
index 6dc083b1..eeb134a9 100644
--- a/boggle/mkdict/mkdict.c
+++ b/boggle/mkdict/mkdict.c
@@ -1,4 +1,4 @@
-/* $NetBSD: mkdict.c,v 1.11 2005/07/01 16:38:24 jmc Exp $ */
+/* $NetBSD: mkdict.c,v 1.12 2021/05/02 12:50:44 rillig Exp $ */
/*-
* Copyright (c) 1993
@@ -39,8 +39,8 @@ static const char copyright[] =
#if 0
static char sccsid[] = "@(#)mkdict.c 8.1 (Berkeley) 6/11/93";
#else
-static const char rcsid[] =
- "$NetBSD: mkdict.c,v 1.11 2005/07/01 16:38:24 jmc Exp $";
+static const char rcsid[] =
+ "$NetBSD: mkdict.c,v 1.12 2021/05/02 12:50:44 rillig Exp $";
#endif
#endif /* not lint */
diff --git a/boggle/mkindex/mkindex.c b/boggle/mkindex/mkindex.c
index ddda2bd9..fad22644 100644
--- a/boggle/mkindex/mkindex.c
+++ b/boggle/mkindex/mkindex.c
@@ -1,4 +1,4 @@
-/* $NetBSD: mkindex.c,v 1.11 2009/08/12 05:29:40 dholland Exp $ */
+/* $NetBSD: mkindex.c,v 1.12 2021/05/02 12:50:44 rillig Exp $ */
/*-
* Copyright (c) 1993
@@ -40,7 +40,7 @@ static char copyright[] = "@(#) Copyright (c) 1993\n\
static char sccsid[] = "@(#)mkindex.c 8.1 (Berkeley) 6/11/93";
#else
static char rcsid[] =
- "$NetBSD: mkindex.c,v 1.11 2009/08/12 05:29:40 dholland Exp $";
+ "$NetBSD: mkindex.c,v 1.12 2021/05/02 12:50:44 rillig Exp $";
#endif
#endif /* not lint */
@@ -112,7 +112,7 @@ nextword(FILE *fp, char *buffer, int *clen, int *rlen)
return (NULL);
p = buf + (*clen = pcount);
-
+
while ((ch = getc(fp)) != EOF && ch >= 'a')
*p++ = ch;
lastch = ch;