]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon/main: -Wformat in info message
authorVladimír Čunát <vladimir.cunat@nic.cz>
Sun, 22 Dec 2019 09:24:49 +0000 (10:24 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 6 Mar 2020 08:55:17 +0000 (09:55 +0100)
Normally the types are equal, but that's not true e.g.
on 32-bit systems and macOS.

daemon/main.c

index febdfb02c61628a574723f40f46498802a4c77bb..09667b5ceb9dc79cdd9281152f23783a4db90402 100644 (file)
@@ -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 */