aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2025-07-28 18:55:41 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2025-07-28 18:55:41 +0200
commit125f1bc82d35bf49c53a18c0b193126b10d193fc (patch)
treeb56baecad35e96dccbe9bc98f86666620f861144
parentadd27f7e92770b250367a73ac5bb40921415db53 (diff)
com_anews: changed the type of 'lval'
-rw-r--r--FICS/adminproc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/FICS/adminproc.c b/FICS/adminproc.c
index b763fef..e670d44 100644
--- a/FICS/adminproc.c
+++ b/FICS/adminproc.c
@@ -369,12 +369,12 @@ PUBLIC int
com_anews(int p, param_list param)
{
FILE *fp = NULL;
- char *junkp = NULL;
char count[10] = { '\0' };
char filename[MAX_FILENAME_SIZE] = { '\0' };
char junk[MAX_LINE_SIZE] = { '\0' };
+ char *junkp = NULL;
int found = 0;
- long int lval = 0;
+ int64_t lval = 0;
time_t crtime = 0;
msnprintf(filename, sizeof filename, "%s/newadminnews.index", news_dir);
@@ -384,7 +384,7 @@ com_anews(int p, param_list param)
return COM_OK;
}
-#define SCAN_JUNK "%ld %9s"
+#define SCAN_JUNK ("%" SCNd64 " " "%9s")
_Static_assert(9 < ARRAY_SIZE(count), "Array too small");
if (param[0].type == 0) {