mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
Fix two compile warnings
This commit is contained in:
parent
6c504d6a7c
commit
218334d1b2
@ -1,3 +1,8 @@
|
||||
Thu Oct 9 15:49:25 BST Daniel P Berrange <berrange@redhat.com>
|
||||
|
||||
* src/lxc_driver.c: Annotate unused parameter
|
||||
* src/virsh.c: Fix scanf format specifier
|
||||
|
||||
Wed Oct 8 08:29:25 PDT 2008 Dan Smith <danms@us.ibm.com>
|
||||
* src/cgroup.c src/cgroup.h: Add cpu shares manipulation
|
||||
* src/lxc_driver.c: Add scheduler parameters interface for cpu shares
|
||||
|
@ -1145,7 +1145,7 @@ static int lxcVersion(virConnectPtr conn, unsigned long *version)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static char *lxcGetSchedulerType(virDomainPtr domain, int *nparams)
|
||||
static char *lxcGetSchedulerType(virDomainPtr domain ATTRIBUTE_UNUSED, int *nparams)
|
||||
{
|
||||
if (nparams)
|
||||
*nparams = 1;
|
||||
|
@ -1178,7 +1178,7 @@ cmdSchedinfo(vshControl *ctl, const vshCmd *cmd)
|
||||
if (param_name == NULL)
|
||||
goto cleanup;
|
||||
|
||||
if (sscanf(set, "%[^=]=%i", param_name, ¶m_value) != 2) {
|
||||
if (sscanf(set, "%[^=]=%lli", param_name, ¶m_value) != 2) {
|
||||
vshError(ctl, FALSE, "%s", _("Invalid value of param"));
|
||||
goto cleanup;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user