mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
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:
parent
d49f18e976
commit
d5c86278a7
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user