From: Vladimír Čunát Date: Sun, 22 Dec 2019 09:24:49 +0000 (+0100) Subject: daemon/main: -Wformat in info message X-Git-Tag: v5.1.0~34^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68fe1635d646541f746ba57f9ea72ec14e83ac62;p=thirdparty%2Fknot-resolver.git daemon/main: -Wformat in info message Normally the types are equal, but that's not true e.g. on 32-bit systems and macOS. --- diff --git a/daemon/main.c b/daemon/main.c index febdfb02c..09667b5ce 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -572,7 +572,7 @@ int main(int argc, char **argv) strerror(errno)); } else if (rlim.rlim_cur < 512*1024) { kr_log_info("[system] warning: hard limit for number of file-descriptors is only %ld but recommended value is 524288\n", - rlim.rlim_cur); + (long)rlim.rlim_cur); } /* Connect forks with local socket */