aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
Diffstat (limited to 'FICS')
-rw-r--r--FICS/playerdb.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c
index 630e11a..d27c69e 100644
--- a/FICS/playerdb.c
+++ b/FICS/playerdb.c
@@ -352,11 +352,14 @@ player_remove(int p)
PRIVATE void
ReadV1PlayerFmt(int p, player *pp, FILE *fp, char *file, int version)
{
- char *tmp;
- char tmp2[MAX_STRING_LENGTH] = { '\0' };
- int bs, ss, ws, ls, bugs;
- int i, size_cens, size_noplay, size_not, size_gnot, size_chan, len;
- size_t n;
+ char *tmp;
+ char tmp2[MAX_STRING_LENGTH] = { '\0' };
+ int bs, ss, ws, ls, bugs;
+ int i, size_cens, size_noplay, size_not, size_gnot,
+ size_chan, len;
+ intmax_t array[2] = { 0 };
+ intmax_t ltime_tmp[5] = { 0 };
+ size_t n;
/* XXX: not referenced */
(void) version;
@@ -405,8 +408,6 @@ ReadV1PlayerFmt(int p, player *pp, FILE *fp, char *file, int version)
pp->emailAddress = NULL;
}
- intmax_t ltime_tmp[5];
-
if (fscanf(fp, "%u %u %u %u %u %u %jd %u %u %u %u %u %u %u %u %jd %u %u "
"%u %u %u %u %u %u %jd %u %u %u %u %u %u %u %u %jd %u %u %u %u %u %u "
"%u %u %jd %u %u %d\n",
@@ -465,8 +466,6 @@ ReadV1PlayerFmt(int p, player *pp, FILE *fp, char *file, int version)
pp->prompt = xstrdup(tmp2);
}
- intmax_t array[2];
-
if (fscanf(fp, "%d %d %d %jd %jd %d %d %d %d %d %d %d %d %d %d %d %d %d "
"%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d\n",
&pp->open, &pp->rated, &pp->ropen, &array[0], &array[1],