mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user