提交 83124357 编写于 作者: P Peter Krempa

maint: Misc whitespace cleanups

上级 bc680e13
...@@ -441,7 +441,7 @@ virStoragePoolDefParseAuthChap(xmlXPathContextPtr ctxt, ...@@ -441,7 +441,7 @@ virStoragePoolDefParseAuthChap(xmlXPathContextPtr ctxt,
static int static int
virStoragePoolDefParseAuthCephx(xmlXPathContextPtr ctxt, virStoragePoolDefParseAuthCephx(xmlXPathContextPtr ctxt,
virStoragePoolAuthCephxPtr auth) { virStoragePoolAuthCephxPtr auth) {
char *uuid = NULL; char *uuid = NULL;
auth->username = virXPathString("string(./auth/@username)", ctxt); auth->username = virXPathString("string(./auth/@username)", ctxt);
if (auth->username == NULL) { if (auth->username == NULL) {
......
...@@ -250,11 +250,9 @@ virTypedParameterAssignFromStr(virTypedParameterPtr param, const char *name, ...@@ -250,11 +250,9 @@ virTypedParameterAssignFromStr(virTypedParameterPtr param, const char *name,
} }
break; break;
case VIR_TYPED_PARAM_BOOLEAN: case VIR_TYPED_PARAM_BOOLEAN:
if (STRCASEEQ(val, "true") || if (STRCASEEQ(val, "true") || STREQ(val, "1")) {
STREQ(val, "1")) {
param->value.b = true; param->value.b = true;
} else if (STRCASEEQ(val, "false") || } else if (STRCASEEQ(val, "false") || STREQ(val, "0")) {
STREQ(val, "0")) {
param->value.b = false; param->value.b = false;
} else { } else {
virReportError(VIR_ERR_INVALID_ARG, virReportError(VIR_ERR_INVALID_ARG,
......
...@@ -3576,8 +3576,7 @@ cmdSchedinfo(vshControl *ctl, const vshCmd *cmd) ...@@ -3576,8 +3576,7 @@ cmdSchedinfo(vshControl *ctl, const vshCmd *cmd)
/* Print SchedulerType */ /* Print SchedulerType */
schedulertype = virDomainGetSchedulerType(dom, &nparams); schedulertype = virDomainGetSchedulerType(dom, &nparams);
if (schedulertype != NULL) { if (schedulertype != NULL) {
vshPrint(ctl, "%-15s: %s\n", _("Scheduler"), vshPrint(ctl, "%-15s: %s\n", _("Scheduler"), schedulertype);
schedulertype);
VIR_FREE(schedulertype); VIR_FREE(schedulertype);
} else { } else {
vshPrint(ctl, "%-15s: %s\n", _("Scheduler"), _("Unknown")); vshPrint(ctl, "%-15s: %s\n", _("Scheduler"), _("Unknown"));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册