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 <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina
2014-05-19 16:36:55 +02:00
parent d49f18e976
commit d5c86278a7

View File

@@ -1734,13 +1734,13 @@ int
qemuAgentSetTime(qemuAgentPtr mon, qemuAgentSetTime(qemuAgentPtr mon,
long long seconds, long long seconds,
unsigned int nseconds, unsigned int nseconds,
bool sync) bool rtcSync)
{ {
int ret = -1; int ret = -1;
virJSONValuePtr cmd; virJSONValuePtr cmd;
virJSONValuePtr reply = NULL; virJSONValuePtr reply = NULL;
if (sync) { if (rtcSync) {
cmd = qemuAgentMakeCommand("guest-set-time", NULL); cmd = qemuAgentMakeCommand("guest-set-time", NULL);
} else { } else {
/* guest agent expect time with nanosecond granularity. /* guest agent expect time with nanosecond granularity.