Browse code

nat_traversal: use TIME_T_INT_FMT

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>

Sebastian Kemper authored on 22/10/2021 23:47:57
Showing 1 changed files
... ...
@@ -1724,7 +1724,7 @@ static void restore_keepalive_state(void)
1724 1724
 	res = fscanf(f, STATE_FILE_HEADER); // skip header
1725 1725
 
1726 1726
 	while(true) {
1727
-		res = fscanf(f, "%63s %63s %ld %ld", uri, socket, &rtime, &stime);
1727
+		res = fscanf(f, "%63s %63s %" TIME_T_INT_FMT " %" TIME_T_INT_FMT, uri, socket, &rtime, &stime);
1728 1728
 		if(res == EOF) {
1729 1729
 			if(ferror(f))
1730 1730
 				LM_ERR("error while reading keepalive state file: %s\n",