mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
qemu: fix several codecheck in qemu_monitor.c
1.clear passwd in debug log 2.alignment 3.use the same variable name for function definition and declaration Signed-off-by: Jiang Jiacheng <jiangjiacheng@huawei.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
e128d337c9
commit
fe86fc0a21
@ -2053,8 +2053,8 @@ qemuMonitorSetPassword(qemuMonitor *mon,
|
||||
if (!protocol)
|
||||
return -1;
|
||||
|
||||
VIR_DEBUG("protocol=%s, password=%p, action_if_connected=%s",
|
||||
protocol, password, action_if_connected);
|
||||
VIR_DEBUG("protocol=%s, action_if_connected=%s",
|
||||
protocol, action_if_connected);
|
||||
|
||||
QEMU_CHECK_MONITOR(mon);
|
||||
|
||||
|
@ -627,8 +627,8 @@ struct _qemuMonitorCPUInfo {
|
||||
};
|
||||
typedef struct _qemuMonitorCPUInfo qemuMonitorCPUInfo;
|
||||
|
||||
void qemuMonitorCPUInfoFree(qemuMonitorCPUInfo *list,
|
||||
size_t nitems);
|
||||
void qemuMonitorCPUInfoFree(qemuMonitorCPUInfo *cpus,
|
||||
size_t ncpus);
|
||||
int qemuMonitorGetCPUInfo(qemuMonitor *mon,
|
||||
qemuMonitorCPUInfo **vcpus,
|
||||
size_t maxvcpus,
|
||||
@ -1186,7 +1186,7 @@ int qemuMonitorNBDServerAdd(qemuMonitor *mon,
|
||||
const char *export,
|
||||
bool writable,
|
||||
const char *bitmap);
|
||||
int qemuMonitorNBDServerStop(qemuMonitor *);
|
||||
int qemuMonitorNBDServerStop(qemuMonitor *mon);
|
||||
|
||||
int qemuMonitorBlockExportAdd(qemuMonitor *mon,
|
||||
virJSONValue **props);
|
||||
|
Loading…
Reference in New Issue
Block a user