aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/gamedb.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-16 14:25:08 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-16 14:25:08 +0100
commit7f2ed2a6067bc5c094b7693f660a7a21f302abf4 (patch)
tree6351b989b4c2d0a94f054cea15af03670b79c85c /FICS/gamedb.c
parent4a3f9ff9ae0218a571c43ca90617d50b8018b83b (diff)
Deleted trailing whitespace characters
Diffstat (limited to 'FICS/gamedb.c')
-rw-r--r--FICS/gamedb.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/FICS/gamedb.c b/FICS/gamedb.c
index 03c677d..430e033 100644
--- a/FICS/gamedb.c
+++ b/FICS/gamedb.c
@@ -560,7 +560,7 @@ PUBLIC char *movesToString(int g, int pgn)
wr = garray[g].white_rating;
br = garray[g].black_rating;
-
+
curTime = untenths(garray[g].timeOfStart);
@@ -646,7 +646,7 @@ PUBLIC char *movesToString(int g, int pgn)
strcat(gameString, "Untimed ");
}
strcat(gameString, "match, initial time: ");
- if ((garray[g].bInitTime != garray[g].wInitTime) || (garray[g].wIncrement != garray[g].bIncrement)) { /* different starting times */
+ if ((garray[g].bInitTime != garray[g].wInitTime) || (garray[g].wIncrement != garray[g].bIncrement)) { /* different starting times */
sprintf(tmp, "%d minutes, increment: %d seconds AND %d minutes, increment: %d seconds.\n\n", garray[g].wInitTime / 600, garray[g].wIncrement / 10, garray[g].bInitTime / 600, garray[g].bIncrement / 10);
} else {
sprintf(tmp, "%d minutes, increment: %d seconds.\n\n", garray[g].wInitTime / 600, garray[g].wIncrement / 10);
@@ -1115,7 +1115,7 @@ PUBLIC int ReadGameAttrs(FILE * fp, char *fname, int g)
return -1;
}
fgets(line, MAX_GLINE_SIZE - 1, fp);
- } while (!feof(fp));
+ } while (!feof(fp));
if (!(garray[g].bInitTime))
garray[g].bInitTime = garray[g].wInitTime;
return 0;
@@ -1574,7 +1574,7 @@ PUBLIC void addjournalitem(int p,char count2,char* WhiteName2, int WhiteRating2,
fprintf(stderr, "FICS: Problem opening file %s for write\n", fname);
pprintf (p, "Couldn't update journal! Report this to an admin.\n");
return;
- }
+ }
fp = fopen(fname, "r");
if (!fp) { /* Empty? */
fprintf(fp2, "%c %s %d %s %d %s %d %d %s %s %s\n",
@@ -1648,7 +1648,7 @@ PUBLIC void addjournalitem(int p,char count2,char* WhiteName2, int WhiteRating2,
fclose(fp2);
rename(fname2, fname);
return;
-}
+}
PUBLIC int pjournal(int p, int p1, char *fname)
{
@@ -1792,4 +1792,3 @@ PUBLIC int game_count(void)
game_high = count;
return count;
}
-