]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
msg_buf_size is unsigned long not size_t
authorGuido Günther <agx@sigxcpu.org>
Fri, 8 Jun 2012 19:24:13 +0000 (21:24 +0200)
committerGuido Günther <agx@sigxcpu.org>
Sun, 10 Jun 2012 18:43:30 +0000 (20:43 +0200)
This fixes the build on 32bit systems which otherwise fails with:

virnetmessagetest.c: In function 'testMessageHeaderEncode':
virnetmessagetest.c:75:9: error: format '%zu' expects argument of type 'size_t', but argument 7 has type 'long unsigned int' [-Werror=format]

tests/virnetmessagetest.c

index 6c294ca4452cf43763cb81c0944e647b996d2206..0408b5bb46eabe4105843a941b3e7fc71d6137de 100644 (file)
@@ -72,7 +72,7 @@ static int testMessageHeaderEncode(const void *args ATTRIBUTE_UNUSED)
     }
 
     if (msg->bufferLength != msg_buf_size) {
-        VIR_DEBUG("Expect message offset %zu got %zu",
+        VIR_DEBUG("Expect message offset %lu got %zu",
                   msg_buf_size, msg->bufferLength);
         goto cleanup;
     }