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.13-rc1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=229773fcbd9a06950224600c97350c0d4e8e8701;p=thirdparty%2Flibvirt.git openvz: check pointer size instead of int since int is 4 bytes on both i386 and amd64. --- diff --git a/src/openvz/openvz_conf.c b/src/openvz/openvz_conf.c index 5d897d8fce..0c5ab74e17 100644 --- a/src/openvz/openvz_conf.c +++ b/src/openvz/openvz_conf.c @@ -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,