Fix two compile warnings

This commit is contained in:
Daniel P. Berrange 2008-10-09 14:50:25 +00:00
parent 6c504d6a7c
commit 218334d1b2
3 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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;

View File

@ -1178,7 +1178,7 @@ cmdSchedinfo(vshControl *ctl, const vshCmd *cmd)
if (param_name == NULL)
goto cleanup;
if (sscanf(set, "%[^=]=%i", param_name, &param_value) != 2) {
if (sscanf(set, "%[^=]=%lli", param_name, &param_value) != 2) {
vshError(ctl, FALSE, "%s", _("Invalid value of param"));
goto cleanup;
}