Skip to content

Commit 28211e1

Browse files
committed
fix a compile warning of printf
1 parent 09a668e commit 28211e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netutils.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ int get_ipstr_family(const char *ipstr) {
287287
/* set nofile limit (may require root privileges) */
288288
void set_nofile_limit(rlim_t nofile) {
289289
if (setrlimit(RLIMIT_NOFILE, &(struct rlimit){nofile, nofile}) < 0) {
290-
LOGERR("[set_nofile_limit] setrlimit(nofile, %lu): (%d) %s", nofile, errno, errstring(errno));
290+
LOGERR("[set_nofile_limit] setrlimit(nofile, %lu): (%d) %s", (long unsigned)nofile, errno, errstring(errno));
291291
exit(errno);
292292
}
293293
}

0 commit comments

Comments
 (0)