]> 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)
committerGuido Günther <agx@sigxcpu.org>
Wed, 20 Jun 2012 06:06:57 +0000 (08:06 +0200)
since int is 4 bytes on both i386 and amd64.

src/openvz/openvz_conf.c

index 5d897d8fce9ebe65a6c4c6b7c6fbe8eed05b2157..0c5ab74e1720c1563405ff96706dc6de4a876641 100644 (file)
@@ -195,7 +195,7 @@ virCapsPtr openvzCapsInit(void)
     if ((guest = virCapabilitiesAddGuest(caps,
                                          "exe",
                                          utsname.machine,
-                                         sizeof(int) == 4 ? 32 : 64,
+                                         sizeof(void*) == 4 ? 32 : 64,
                                          NULL,
                                          NULL,
                                          0,