]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon: another UINT_MAX -> UINT32_MAX
authorGrigorii Demidov <grigorii.demidov@nic.cz>
Fri, 21 Oct 2016 14:36:18 +0000 (16:36 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 21 Oct 2016 14:36:18 +0000 (16:36 +0200)
daemon/main.c

index 58253452fb33e39469300afe742dfe24837e1f5c..99affef6bec61063d184b2530dbd1257cf070bfa 100644 (file)
@@ -177,7 +177,7 @@ static void ipc_activity(uv_poll_t* handle, int status, int events)
        uint32_t len = 0;
        if (ipc_readall(fd, (char *)&len, sizeof(len))) {
                auto_free char *rbuf = NULL;
-               if (len < UINT_MAX) {
+               if (len < UINT32_MAX) {
                        rbuf = malloc(len + 1);
                } else {
                        errno = EINVAL;