summaryrefslogtreecommitdiffstats
path: root/trek
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-05-25 00:39:45 +0000
committerdholland <dholland@NetBSD.org>2009-05-25 00:39:45 +0000
commitb32fa4c609c9e5c6586f3c870f5130a4c1b17a1f (patch)
tree4b3abdadbd63e5bc178a1c1a493eb254646c4ac7 /trek
parent072f2a0f5b6a9a8b0eb6499bc8454af374cf2e99 (diff)
downloadbsdgames-darwin-b32fa4c609c9e5c6586f3c870f5130a4c1b17a1f.tar.gz
bsdgames-darwin-b32fa4c609c9e5c6586f3c870f5130a4c1b17a1f.tar.zst
bsdgames-darwin-b32fa4c609c9e5c6586f3c870f5130a4c1b17a1f.zip
"abbreviation" has two Bs.
Diffstat (limited to 'trek')
-rw-r--r--trek/getpar.c14
-rw-r--r--trek/getpar.h4
-rw-r--r--trek/score.c6
-rw-r--r--trek/srscan.c8
-rw-r--r--trek/win.c8
5 files changed, 20 insertions, 20 deletions
diff --git a/trek/getpar.c b/trek/getpar.c
index cc1ed999..b21973e3 100644
--- a/trek/getpar.c
+++ b/trek/getpar.c
@@ -1,4 +1,4 @@
-/* $NetBSD: getpar.c,v 1.15 2009/05/24 23:20:22 dholland Exp $ */
+/* $NetBSD: getpar.c,v 1.16 2009/05/25 00:39:45 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)getpar.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: getpar.c,v 1.15 2009/05/24 23:20:22 dholland Exp $");
+__RCSID("$NetBSD: getpar.c,v 1.16 2009/05/25 00:39:45 dholland Exp $");
#endif
#endif /* not lint */
@@ -145,8 +145,8 @@ getcodpar(const char *s, const struct cvntab tab[])
/* if command list, print four per line */
if (input[0] == '?' && input[1] == 0) {
c = 4;
- for (r = tab; r->abrev; r++) {
- strcpy(input, r->abrev);
+ for (r = tab; r->abbrev; r++) {
+ strcpy(input, r->abbrev);
strcat(input, r->full);
printf("%14.14s", input);
if (--c > 0)
@@ -160,9 +160,9 @@ getcodpar(const char *s, const struct cvntab tab[])
}
/* search for in table */
- for (r = tab; r->abrev; r++) {
+ for (r = tab; r->abbrev; r++) {
p = input;
- for (q = r->abrev; *q; q++)
+ for (q = r->abbrev; *q; q++)
if (*p++ != *q)
break;
if (!*q) {
@@ -175,7 +175,7 @@ getcodpar(const char *s, const struct cvntab tab[])
}
/* check for not found */
- if (!r->abrev) {
+ if (!r->abbrev) {
printf("invalid input; ? for valid inputs\n");
skiptonl(0);
} else
diff --git a/trek/getpar.h b/trek/getpar.h
index 77b93b18..f9472150 100644
--- a/trek/getpar.h
+++ b/trek/getpar.h
@@ -1,4 +1,4 @@
-/* $NetBSD: getpar.h,v 1.11 2009/05/24 21:44:56 dholland Exp $ */
+/* $NetBSD: getpar.h,v 1.12 2009/05/25 00:39:45 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -35,7 +35,7 @@ typedef void (*cmdfun)(int);
/* used for getcodpar() parameter list */
struct cvntab {
- const char *abrev;
+ const char *abbrev;
const char *full;
cmdfun value;
int value2;
diff --git a/trek/score.c b/trek/score.c
index 7d8deae8..02c4107b 100644
--- a/trek/score.c
+++ b/trek/score.c
@@ -1,4 +1,4 @@
-/* $NetBSD: score.c,v 1.10 2009/05/25 00:03:18 dholland Exp $ */
+/* $NetBSD: score.c,v 1.11 2009/05/25 00:39:45 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)score.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: score.c,v 1.10 2009/05/25 00:03:18 dholland Exp $");
+__RCSID("$NetBSD: score.c,v 1.11 2009/05/25 00:39:45 dholland Exp $");
#endif
#endif /* not lint */
@@ -94,7 +94,7 @@ score(void)
if (Move.endgame > 0) {
s += (t = 100 * (u = Game.skill));
scoreitem(t, "Bonus for winning a %s%s game",
- Skitab[u - 1].abrev, Skitab[u - 1].full);
+ Skitab[u - 1].abbrev, Skitab[u - 1].full);
}
if (Game.killed) {
diff --git a/trek/srscan.c b/trek/srscan.c
index 4d6272c8..4c8c1c3c 100644
--- a/trek/srscan.c
+++ b/trek/srscan.c
@@ -1,4 +1,4 @@
-/* $NetBSD: srscan.c,v 1.9 2009/05/24 22:55:03 dholland Exp $ */
+/* $NetBSD: srscan.c,v 1.10 2009/05/25 00:39:45 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)srscan.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: srscan.c,v 1.9 2009/05/24 22:55:03 dholland Exp $");
+__RCSID("$NetBSD: srscan.c,v 1.10 2009/05/25 00:39:45 dholland Exp $");
#endif
#endif /* not lint */
@@ -166,9 +166,9 @@ srscan(int f)
p = &Lentab[Game.length - 1];
if (Game.length > 2)
p--;
- printf("Length, Skill %s%s, ", p->abrev, p->full);
+ printf("Length, Skill %s%s, ", p->abbrev, p->full);
p = &Skitab[Game.skill - 1];
- printf("%s%s\n", p->abrev, p->full);
+ printf("%s%s\n", p->abbrev, p->full);
return;
}
printf(" ");
diff --git a/trek/win.c b/trek/win.c
index 70d1b9a2..9d45e38e 100644
--- a/trek/win.c
+++ b/trek/win.c
@@ -1,4 +1,4 @@
-/* $NetBSD: win.c,v 1.11 2009/05/24 23:00:46 dholland Exp $ */
+/* $NetBSD: win.c,v 1.12 2009/05/25 00:39:45 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)win.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: win.c,v 1.11 2009/05/24 23:00:46 dholland Exp $");
+__RCSID("$NetBSD: win.c,v 1.12 2009/05/25 00:39:45 dholland Exp $");
#endif
#endif /* not lint */
@@ -81,9 +81,9 @@ win(void)
printf("to the exalted rank of Commodore Emeritus\n");
} else {
p = &Skitab[Game.skill - 1];
- printf("from %s%s ", p->abrev, p->full);
+ printf("from %s%s ", p->abbrev, p->full);
p++;
- printf("to %s%s\n", p->abrev, p->full);
+ printf("to %s%s\n", p->abbrev, p->full);
}
}