diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2025-10-04 15:40:57 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2025-10-04 15:40:57 +0200 |
commit | 971335d702bbea816312edd3a9a25c713b9588f9 (patch) | |
tree | c02dafd0da30b07bd84a9c3b2ba7f5b62f3baefc /FICS/shutdown.c | |
parent | 558d1ee65162204947e7ab612fe20ac385640b5e (diff) |
Usage of 'intmax_t'
Diffstat (limited to 'FICS/shutdown.c')
-rw-r--r-- | FICS/shutdown.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/FICS/shutdown.c b/FICS/shutdown.c index 6e765ed..26dae62 100644 --- a/FICS/shutdown.c +++ b/FICS/shutdown.c @@ -258,10 +258,10 @@ com_shutdown(int p, param_list param) "%s. ****\n", reason); } - pprintf(p1, " **** Server going down in %ld minutes and %ld " + pprintf(p1, " **** Server going down in %jd minutes and %jd " "seconds. ****\n", - (long int)(shutdownTime / 60), - (long int)(shutdownTime % 60)); + (intmax_t)(shutdownTime / 60), + (intmax_t)(shutdownTime % 60)); if (p != p1) // fix double prompt - DAV pprintf_prompt(p1, "\n"); else @@ -291,10 +291,10 @@ server_shutdown(int secs, char *why) continue; pprintf(p1, "\n\n **** Automatic Server shutdown. ****\n"); pprintf(p1, "%s\n", why); - pprintf_prompt(p1, " **** Server going down in %ld minutes " - "and %ld seconds. ****\n\n", - (long int)(shutdownTime / 60), - (long int)(shutdownTime - ((shutdownTime / 60) * 60))); + pprintf_prompt(p1, " **** Server going down in %jd minutes " + "and %jd seconds. ****\n\n", + (intmax_t)(shutdownTime / 60), + (intmax_t)(shutdownTime - ((shutdownTime / 60) * 60))); } fprintf(stderr, "FICS: **** Automatic Server shutdown. ****\n"); |