From: Guido Günther Date: Tue, 19 Jun 2012 05:26:31 +0000 (+0200) Subject: openvz: check pointer size instead of int X-Git-Tag: v0.9.11.5~60 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=66d095e6732ed1d87152bcbca1779ef4b6cf09db;p=thirdparty%2Flibvirt.git openvz: check pointer size instead of int since int is 4 bytes on both i386 and amd64. (cherry picked from commit 229773fcbd9a06950224600c97350c0d4e8e8701) --- diff --git a/src/openvz/openvz_conf.c b/src/openvz/openvz_conf.c index 6f0e1916ac..790440628c 100644 --- a/src/openvz/openvz_conf.c +++ b/src/openvz/openvz_conf.c @@ -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,