aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-05-19 10:33:27 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-05-19 10:33:27 +0200
commit8702d77040f3bf0ea355504155bea74bad790754 (patch)
tree59cbf442c62e5c1572183a188f3358738ae51261 /FICS
parentb96e332f203a34b7014224c27e1932a25f0f2ed9 (diff)
Moved 'ltime_tmp' and 'array'
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],