summaryrefslogtreecommitdiffstats
path: root/games/atc
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1995-05-30 03:37:36 +0000
committerrgrimes <rgrimes@FreeBSD.org>1995-05-30 03:37:36 +0000
commit30ef9631c5eac7f8254bd3d7ad274d34d9f518b8 (patch)
tree4d8ac7e75ac179a918a76def244de6e3f3314e76 /games/atc
parent188803394908f222ab3ed8ec32331eb6dd00fd2d (diff)
downloadFreeBSD-src-30ef9631c5eac7f8254bd3d7ad274d34d9f518b8.zip
FreeBSD-src-30ef9631c5eac7f8254bd3d7ad274d34d9f518b8.tar.gz
Remove trailing whitespace.
Diffstat (limited to 'games/atc')
-rw-r--r--games/atc/Makefile2
-rw-r--r--games/atc/graphics.c4
-rw-r--r--games/atc/input.c34
-rw-r--r--games/atc/list.c2
-rw-r--r--games/atc/log.c18
-rw-r--r--games/atc/main.c8
-rw-r--r--games/atc/update.c14
7 files changed, 41 insertions, 41 deletions
diff --git a/games/atc/Makefile b/games/atc/Makefile
index 4df0b3f..e6433c4 100644
--- a/games/atc/Makefile
+++ b/games/atc/Makefile
@@ -11,7 +11,7 @@ GAMES= ATC_scores Game_List Killer crossover default easy game_2
CLEANFILES=grammar.c y.tab.h lex.c
HIDEGAME=hidegame
-beforeinstall:
+beforeinstall:
(cd ${.CURDIR}/games; install -c -o ${BINOWN} -g ${BINGRP} -m 400 \
${GAMES} ${DESTDIR}/usr/share/games/atc)
diff --git a/games/atc/graphics.c b/games/atc/graphics.c
index 49604f4..7503b26 100644
--- a/games/atc/graphics.c
+++ b/games/atc/graphics.c
@@ -115,7 +115,7 @@ init_gr()
initscr();
setbuf(stdout, buffer);
input = newwin(INPUT_LINES, COLS - PLANE_COLS, LINES - INPUT_LINES, 0);
- credit = newwin(INPUT_LINES, PLANE_COLS, LINES - INPUT_LINES,
+ credit = newwin(INPUT_LINES, PLANE_COLS, LINES - INPUT_LINES,
COLS - PLANE_COLS);
planes = newwin(LINES - INPUT_LINES, PLANE_COLS, 0, COLS - PLANE_COLS);
}
@@ -204,7 +204,7 @@ setup_screen(scp)
wmove(radar, scp->airport[i].y, scp->airport[i].x * 2);
waddstr(radar, str);
}
-
+
overwrite(radar, cleanradar);
wrefresh(radar);
wrefresh(credit);
diff --git a/games/atc/input.c b/games/atc/input.c
index b73ab69..0d1a0f7 100644
--- a/games/atc/input.c
+++ b/games/atc/input.c
@@ -93,8 +93,8 @@ typedef struct {
#define NUMSTATES NUMELS(st)
-char *setplane(), *circle(), *left(), *right(), *Left(), *Right(),
- *beacon(), *ex_it(), *climb(), *descend(), *setalt(), *setrelalt(),
+char *setplane(), *circle(), *left(), *right(), *Left(), *Right(),
+ *beacon(), *ex_it(), *climb(), *descend(), *setalt(), *setrelalt(),
*benum(), *to_dir(), *rel_dir(), *delayb(), *mark(), *unmark(),
*airport(), *turn(), *ignore();
@@ -104,17 +104,17 @@ RULE state0[] = { { ALPHATOKEN, 1, "%c:", setplane},
{ CRTOKEN, -1, "", NULL },
#endif
{ HELPTOKEN, 12, " [a-z]<ret>", NULL }},
- state1[] = { { 't', 2, " turn", turn },
- { 'a', 3, " altitude:", NULL },
+ state1[] = { { 't', 2, " turn", turn },
+ { 'a', 3, " altitude:", NULL },
{ 'c', 4, " circle", circle },
{ 'm', 7, " mark", mark },
{ 'u', 7, " unmark", unmark },
{ 'i', 7, " ignore", ignore },
{ HELPTOKEN, 12, " tacmui", NULL }},
- state2[] = { { 'l', 6, " left", left },
- { 'r', 6, " right", right },
+ state2[] = { { 'l', 6, " left", left },
+ { 'r', 6, " right", right },
{ 'L', 4, " left 90", Left },
- { 'R', 4, " right 90", Right },
+ { 'R', 4, " right 90", Right },
{ 't', 11, " towards", NULL },
{ 'w', 4, " to 0", to_dir },
{ 'e', 4, " to 45", to_dir },
@@ -125,14 +125,14 @@ RULE state0[] = { { ALPHATOKEN, 1, "%c:", setplane},
{ 'a', 4, " to 270", to_dir },
{ 'q', 4, " to 315", to_dir },
{ HELPTOKEN, 12, " lrLRt<dir>", NULL }},
- state3[] = { { '+', 10, " climb", climb },
- { 'c', 10, " climb", climb },
- { '-', 10, " descend", descend },
- { 'd', 10, " descend", descend },
+ state3[] = { { '+', 10, " climb", climb },
+ { 'c', 10, " climb", climb },
+ { '-', 10, " descend", descend },
+ { 'd', 10, " descend", descend },
{ NUMTOKEN, 7, " %c000 feet", setalt },
{ HELPTOKEN, 12, " +-cd[0-9]", NULL }},
- state4[] = { { '@', 9, " at", NULL },
- { 'a', 9, " at", NULL },
+ state4[] = { { '@', 9, " at", NULL },
+ { 'a', 9, " at", NULL },
{ RETTOKEN, -1, "", NULL },
#ifdef SYSV
{ CRTOKEN, -1, "", NULL },
@@ -150,9 +150,9 @@ RULE state0[] = { { ALPHATOKEN, 1, "%c:", setplane},
{ 'z', 4, " 225", rel_dir },
{ 'a', 4, " 270", rel_dir },
{ 'q', 4, " 315", rel_dir },
- { RETTOKEN, -1, "", NULL },
+ { RETTOKEN, -1, "", NULL },
#ifdef SYSV
- { CRTOKEN, -1, "", NULL },
+ { CRTOKEN, -1, "", NULL },
#endif
{ HELPTOKEN, 12, " @a<dir><ret>",NULL }},
state7[] = { { RETTOKEN, -1, "", NULL },
@@ -167,7 +167,7 @@ RULE state0[] = { { ALPHATOKEN, 1, "%c:", setplane},
{ HELPTOKEN, 12, " b*", NULL }},
state10[] = { { NUMTOKEN, 7, " %c000 ft", setrelalt},
{ HELPTOKEN, 12, " [0-9]", NULL }},
- state11[] = { { 'b', 8, " beacon #", beacon },
+ state11[] = { { 'b', 8, " beacon #", beacon },
{ '*', 8, " beacon #", beacon },
{ 'e', 8, " exit #", ex_it },
{ 'a', 8, " airport #", airport },
@@ -272,7 +272,7 @@ getcommand()
return (1); /* forced update */
dest_type = T_NODEST;
-
+
for (i = 0; i < level; i++) {
func = st[stack[i].state].rule[stack[i].rule].func;
if (func != NULL)
diff --git a/games/atc/list.c b/games/atc/list.c
index 16c019a..be2bbd0 100644
--- a/games/atc/list.c
+++ b/games/atc/list.c
@@ -99,7 +99,7 @@ delete(l, p)
{
if (l->head == NULL)
loser(p, "deleted a non-existant plane! Get help!");
-
+
if (l->head == p && l->tail == p)
l->head = l->tail = NULL;
else if (l->head == p) {
diff --git a/games/atc/log.c b/games/atc/log.c
index 8868a60..71f0167 100644
--- a/games/atc/log.c
+++ b/games/atc/log.c
@@ -106,7 +106,7 @@ log_score(list_em)
return (-1);
}
/*
- * This is done to take advantage of stdio, while still
+ * This is done to take advantage of stdio, while still
* allowing a O_CREAT during the open(2) of the log file.
*/
fp = fdopen(fd, "r+");
@@ -126,10 +126,10 @@ log_score(list_em)
}
for (;;) {
good = fscanf(fp, "%s %s %s %d %d %d",
- score[num_scores].name,
- score[num_scores].host,
+ score[num_scores].name,
+ score[num_scores].host,
score[num_scores].game,
- &score[num_scores].planes,
+ &score[num_scores].planes,
&score[num_scores].time,
&score[num_scores].real_time);
if (good != 6 || ++num_scores >= NUM_SCORES)
@@ -137,7 +137,7 @@ log_score(list_em)
}
if (!test_mode && !list_em) {
if ((pw = (struct passwd *) getpwuid(getuid())) == NULL) {
- fprintf(stderr,
+ fprintf(stderr,
"getpwuid failed for uid %d. Who are you?\n",
getuid());
return (-1);
@@ -187,7 +187,7 @@ log_score(list_em)
if (num_scores < NUM_SCORES)
num_scores++;
bcopy(&score[i],
- &score[num_scores - 1],
+ &score[num_scores - 1],
sizeof (score[i]));
bcopy(&thisscore, &score[i],
sizeof (score[i]));
@@ -197,7 +197,7 @@ log_score(list_em)
}
}
if (!found && !changed && num_scores < NUM_SCORES) {
- bcopy(&thisscore, &score[num_scores],
+ bcopy(&thisscore, &score[num_scores],
sizeof (score[num_scores]));
num_scores++;
changed++;
@@ -212,7 +212,7 @@ log_score(list_em)
rewind(fp);
for (i = 0; i < num_scores; i++)
fprintf(fp, "%s %s %s %d %d %d\n",
- score[i].name, score[i].host,
+ score[i].name, score[i].host,
score[i].game, score[i].planes,
score[i].time, score[i].real_time);
} else {
@@ -230,7 +230,7 @@ log_score(list_em)
/* lock will evaporate upon close */
#endif
fclose(fp);
- printf("%2s: %-8s %-8s %-18s %4s %9s %4s\n", "#", "name", "host",
+ printf("%2s: %-8s %-8s %-18s %4s %9s %4s\n", "#", "name", "host",
"game", "time", "real time", "planes safe");
puts("-------------------------------------------------------------------------------");
for (i = 0; i < num_scores; i++) {
diff --git a/games/atc/main.c b/games/atc/main.c
index f33d118..762c2bc 100644
--- a/games/atc/main.c
+++ b/games/atc/main.c
@@ -75,7 +75,7 @@ main(ac, av)
name = *av++;
while (*av) {
#ifndef SAVEDASH
- if (**av == '-')
+ if (**av == '-')
*++*av;
else
break;
@@ -106,7 +106,7 @@ main(ac, av)
file = *av;
av++;
break;
- default:
+ default:
fprintf(stderr, "Unknown option '%c'\n", *ptr,
name);
f_usage++;
@@ -118,7 +118,7 @@ main(ac, av)
srandom(seed);
if (f_usage)
- fprintf(stderr,
+ fprintf(stderr,
"Usage: %s -[u?lstp] [-[gf] game_name] [-r random seed]\n",
name);
if (f_showscore)
@@ -132,7 +132,7 @@ main(ac, av)
buf[strlen(buf) - 1] = '\0';
puts(buf);
}
-
+
if (f_usage || f_showscore || f_list || f_printpath)
exit(0);
diff --git a/games/atc/update.c b/games/atc/update.c
index 1b94e8a..79bc601 100644
--- a/games/atc/update.c
+++ b/games/atc/update.c
@@ -157,10 +157,10 @@ update()
if (pp->xpos == sp->airport[i].x &&
pp->ypos == sp->airport[i].y) {
if (pp->dest_type == T_AIRPORT)
- loser(pp,
+ loser(pp,
"landed at the wrong airport.");
else
- loser(pp,
+ loser(pp,
"landed instead of exited.");
}
loser(pp, "crashed on the ground.");
@@ -171,10 +171,10 @@ update()
if (pp->xpos == sp->exit[i].x &&
pp->ypos == sp->exit[i].y) {
if (pp->dest_type == T_EXIT)
- loser(pp,
+ loser(pp,
"exited via the wrong exit.");
else
- loser(pp,
+ loser(pp,
"exited instead of landed.");
}
loser(pp, "illegally left the flight arena.");
@@ -228,7 +228,7 @@ command(pp)
buf[0] = '\0';
bp = buf;
- (void)sprintf(bp, "%c%d%c%c%d: ", name(pp), pp->altitude,
+ (void)sprintf(bp, "%c%d%c%c%d: ", name(pp), pp->altitude,
(pp->fuel < LOWFUEL) ? '*' : ' ',
(pp->dest_type == T_AIRPORT) ? 'A' : 'E', pp->dest_no);
@@ -245,7 +245,7 @@ command(pp)
(void)sprintf(bp, " @ B%d", pp->delayd_no);
bp = index(buf, '\0');
- if (*comm_start == '\0' &&
+ if (*comm_start == '\0' &&
(pp->status == S_UNMARKED || pp->status == S_IGNORED))
strcpy(bp, "---------");
return (buf);
@@ -267,7 +267,7 @@ number(l)
return (-1);
else if (l >= 'a' && l <= 'z')
return (l - 'a');
- else
+ else
return (l - 'A');
}
OpenPOWER on IntegriCloud