提交 218334d1 编写于 作者: D Daniel P. Berrange

Fix two compile warnings

上级 6c504d6a
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> 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/cgroup.c src/cgroup.h: Add cpu shares manipulation
* src/lxc_driver.c: Add scheduler parameters interface for cpu shares * src/lxc_driver.c: Add scheduler parameters interface for cpu shares
......
...@@ -1145,7 +1145,7 @@ static int lxcVersion(virConnectPtr conn, unsigned long *version) ...@@ -1145,7 +1145,7 @@ static int lxcVersion(virConnectPtr conn, unsigned long *version)
return 0; return 0;
} }
static char *lxcGetSchedulerType(virDomainPtr domain, int *nparams) static char *lxcGetSchedulerType(virDomainPtr domain ATTRIBUTE_UNUSED, int *nparams)
{ {
if (nparams) if (nparams)
*nparams = 1; *nparams = 1;
......
...@@ -1178,7 +1178,7 @@ cmdSchedinfo(vshControl *ctl, const vshCmd *cmd) ...@@ -1178,7 +1178,7 @@ cmdSchedinfo(vshControl *ctl, const vshCmd *cmd)
if (param_name == NULL) if (param_name == NULL)
goto cleanup; 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")); vshError(ctl, FALSE, "%s", _("Invalid value of param"));
goto cleanup; goto cleanup;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册