]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
openvz: check pointer size instead of int
authorGuido Günther <agx@sigxcpu.org>
Tue, 19 Jun 2012 05:26:31 +0000 (07:26 +0200)
committerCole Robinson <crobinso@redhat.com>
Sun, 12 Aug 2012 22:35:25 +0000 (18:35 -0400)
since int is 4 bytes on both i386 and amd64.
(cherry picked from commit 229773fcbd9a06950224600c97350c0d4e8e8701)

src/openvz/openvz_conf.c

index 6f0e1916acd652642da019e96b4e5af88642b4a6..790440628c28d6caab843bec92fe06070559eb0f 100644 (file)
@@ -154,7 +154,7 @@ virCapsPtr openvzCapsInit(void)
     if ((guest = virCapabilitiesAddGuest(caps,
                                          "exe",
                                          utsname.machine,
-                                         sizeof(int) == 4 ? 32 : 64,
+                                         sizeof(void*) == 4 ? 32 : 64,
                                          NULL,
                                          NULL,
                                          0,