]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: Avoid a variable named 'stat'
authorGeorge Dunlap <george.dunlap@citrix.com>
Thu, 24 Aug 2017 11:34:13 +0000 (12:34 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 24 Aug 2017 14:22:27 +0000 (16:22 +0200)
commit92b6c99223d6347c45fb884cc915c2283912e4ff
tree762fd514a820d9cf7fa794af542a3b5be695b5e4
parentf8172388cc9553c75824bf3868c2084d8eb78a46
libxl: Avoid a variable named 'stat'

Using a variable named 'stat' clashes with the system function
'stat()' causing compiler warnings on some platforms:

libxl/libxl_driver.c: In function 'libxlDomainBlockStatsVBD':
libxl/libxl_driver.c:5387: error: declaration of 'stat' shadows a global declaration [-Wshadow]
/usr/include/sys/stat.h:455: error: shadowed declaration is here [-Wshadow]

Signed-off-by: George Dunlap <george.dunlap@citrix.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
src/libxl/libxl_driver.c