]> xenbits.xensource.com Git - libvirt.git/commit
util: Avoid shadow of 'ulong' in virMemoryMaxValue
authorPeter Krempa <pkrempa@redhat.com>
Thu, 21 May 2015 14:50:19 +0000 (16:50 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 21 May 2015 14:52:01 +0000 (16:52 +0200)
commita5c2d1988e7e978db7329a99ce56fd178750993a
treeacaaafcc409a4585242ca1ec309835911ef4435d
parent886f43ad781ca58b8f87010c1f7d94fa5d9bbc4a
util: Avoid shadow of 'ulong' in virMemoryMaxValue

Old compilers whine:
src/util/virutil.c: In function 'virMemoryMaxValue':
src/util/virutil.c:2612: error: declaration of 'ulong' shadows a global declaration [-Wshadow]
/usr/include/sys/types.h:151: error: shadowed declaration is here [-Wshadow]

s/ulong/capped/ to work around the problem
src/util/virutil.c