diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-05-19 11:15:27 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-05-19 11:15:27 +0200 |
commit | 02210e7a33b88ce6e035295a1eeb9c92ab170e70 (patch) | |
tree | f7650aa129d75fa259a096710730174328dea4b5 /FICS | |
parent | 21100958a180d20ea1a6746d22bf5b44875cb33d (diff) |
Usage of 'intmax_t'
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/playerdb.c | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c index d27c69e..e826cab 100644 --- a/FICS/playerdb.c +++ b/FICS/playerdb.c @@ -1015,41 +1015,45 @@ WritePlayerFile(FILE *fp, int p) fprintf(fp, "%s\n", (pp->passwd ? pp->passwd : "NONE")); fprintf(fp, "%s\n", (pp->emailAddress ? pp->emailAddress : "NONE")); - fprintf(fp, "%u %u %u %u %u %u %lu %u %u %u %u %u %u %u %u %lu %u %u %u " - "%u %u %u %u %u %lu %u %u %u %u %u %u %u %u %lu %u %u %u %u %u %u %u " - "%u %lu %u %u %d\n", + fprintf(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", pp->s_stats.num, pp->s_stats.win, pp->s_stats.los, pp->s_stats.dra, pp->s_stats.rating, (int)(pp->s_stats.sterr * 10.0), - pp->s_stats.ltime, pp->s_stats.best, pp->s_stats.whenbest, + (intmax_t)pp->s_stats.ltime, pp->s_stats.best, pp->s_stats.whenbest, pp->b_stats.num, pp->b_stats.win, pp->b_stats.los, pp->b_stats.dra, pp->b_stats.rating, (int)(pp->b_stats.sterr * 10.0), - pp->b_stats.ltime, pp->b_stats.best, pp->b_stats.whenbest, + (intmax_t)pp->b_stats.ltime, pp->b_stats.best, pp->b_stats.whenbest, pp->w_stats.num, pp->w_stats.win, pp->w_stats.los, pp->w_stats.dra, pp->w_stats.rating, (int)(pp->w_stats.sterr * 10.0), - pp->w_stats.ltime, pp->w_stats.best, pp->w_stats.whenbest, + (intmax_t)pp->w_stats.ltime, pp->w_stats.best, pp->w_stats.whenbest, pp->l_stats.num, pp->l_stats.win, pp->l_stats.los, pp->l_stats.dra, pp->l_stats.rating, (int)(pp->l_stats.sterr * 10.0), - pp->l_stats.ltime, pp->l_stats.best, pp->l_stats.whenbest, + (intmax_t)pp->l_stats.ltime, pp->l_stats.best, pp->l_stats.whenbest, pp->bug_stats.num, pp->bug_stats.win, pp->bug_stats.los, pp->bug_stats.dra, pp->bug_stats.rating, (int)(pp->bug_stats.sterr * 10.0), - pp->bug_stats.ltime, pp->bug_stats.best, pp->bug_stats.whenbest, + (intmax_t)pp->bug_stats.ltime, + pp->bug_stats.best, + pp->bug_stats.whenbest, pp->lastHost); /* fprintf() */ fprintf(fp, "%s\n", pp->prompt); - fprintf(fp, "%d %d %d %ld %ld %d %d %d %d %d %d %d %d %d %d %d %d %d %d " + fprintf(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, pp->timeOfReg, pp->totalTime, + pp->open, pp->rated, pp->ropen, + (intmax_t)pp->timeOfReg, + (intmax_t)pp->totalTime, pp->bell, pp->pgn, pp->notifiedby, pp->i_login, pp->i_game, pp->i_shout, pp->i_cshout, pp->i_tell, pp->i_kibitz, pp->private, pp->jprivate, pp->automail, pp->i_mailmess, pp->style, pp->d_time, |