From: Pavel Hrdina Date: Mon, 19 May 2014 14:36:55 +0000 (+0200) Subject: avoid 'sync' as variable name X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d5c86278;p=libvirt.git avoid 'sync' as variable name Old gcc complains about shadowing 'sync' variable: ../../src/qemu/qemu_agent.c: In function 'qemuAgentSetTime': ../../src/qemu/qemu_agent.c:1737: warning: declaration of 'sync' shadows a global declaration [-Wshadow] /usr/include/unistd.h:464: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Pavel Hrdina --- diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c index 10e2b8da8a..04217339e1 100644 --- a/src/qemu/qemu_agent.c +++ b/src/qemu/qemu_agent.c @@ -1734,13 +1734,13 @@ int qemuAgentSetTime(qemuAgentPtr mon, long long seconds, unsigned int nseconds, - bool sync) + bool rtcSync) { int ret = -1; virJSONValuePtr cmd; virJSONValuePtr reply = NULL; - if (sync) { + if (rtcSync) { cmd = qemuAgentMakeCommand("guest-set-time", NULL); } else { /* guest agent expect time with nanosecond granularity.