]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsysinfo: s/system/sysdef/
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 12 Jun 2015 12:51:09 +0000 (14:51 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 12 Jun 2015 15:43:38 +0000 (17:43 +0200)
commitc1dff918c94684b3ded9136693c99ec48daf4dd8
tree7a8fdf2d57d8c1a7606261e6b9cc69d0602efd6f
parentc156856a2d46227352fd0a733b41ce647cfd06a4
virsysinfo: s/system/sysdef/

A variable can't be named system, obviously. Well, it can if the
compiler is new enough to distinguish a variable named system and a
function call system(). And some older systems, don't have wise
compiler.

  CC     util/libvirt_util_la-virsysinfo.lo
cc1: warnings being treated as errors
../../src/util/virsysinfo.c: In function 'virSysinfoParseSystem':
../../src/util/virsysinfo.c:649: error: declaration of 'system' shadows a global declaration [-Wshadow]
/usr/include/stdlib.h:717: error: shadowed declaration is here [-Wshadow]
make[3]: *** [util/libvirt_util_la-virsysinfo.lo] Error 1

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_conf.c
src/util/virsysinfo.c