]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
maint: Misc whitespace cleanups
authorPeter Krempa <pkrempa@redhat.com>
Mon, 3 Dec 2012 13:17:29 +0000 (14:17 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 3 Dec 2012 14:13:32 +0000 (15:13 +0100)
src/conf/storage_conf.c
src/util/virtypedparam.c
tools/virsh-domain.c

index a6c6ce7104bdee85b943d4207dc747ec1c5488fa..ad0f0c108f681eca8840b25c3d1deeedf978ced9 100644 (file)
@@ -441,7 +441,7 @@ virStoragePoolDefParseAuthChap(xmlXPathContextPtr ctxt,
 
 static int
 virStoragePoolDefParseAuthCephx(xmlXPathContextPtr ctxt,
-                               virStoragePoolAuthCephxPtr auth) {
+                                virStoragePoolAuthCephxPtr auth) {
     char *uuid = NULL;
     auth->username = virXPathString("string(./auth/@username)", ctxt);
     if (auth->username == NULL) {
index 0b7a2689aa4180097b4c90798860e7c3047f22e2..7f0a44be8366d568edd5957c8f8a2ed80b454375 100644 (file)
@@ -250,11 +250,9 @@ virTypedParameterAssignFromStr(virTypedParameterPtr param, const char *name,
         }
         break;
     case VIR_TYPED_PARAM_BOOLEAN:
-        if (STRCASEEQ(val, "true") ||
-            STREQ(val, "1")) {
+        if (STRCASEEQ(val, "true") || STREQ(val, "1")) {
             param->value.b = true;
-        } else if (STRCASEEQ(val, "false") ||
-                 STREQ(val, "0")) {
+        } else if (STRCASEEQ(val, "false") || STREQ(val, "0")) {
             param->value.b = false;
         } else {
             virReportError(VIR_ERR_INVALID_ARG,
index f12777c649ac1ac694a695325b2f49ad3e5c6d36..73ebba9f3cf46f1d187c75ec2eba14ce7df484e1 100644 (file)
@@ -3576,8 +3576,7 @@ cmdSchedinfo(vshControl *ctl, const vshCmd *cmd)
     /* Print SchedulerType */
     schedulertype = virDomainGetSchedulerType(dom, &nparams);
     if (schedulertype != NULL) {
-        vshPrint(ctl, "%-15s: %s\n", _("Scheduler"),
-             schedulertype);
+        vshPrint(ctl, "%-15s: %s\n", _("Scheduler"), schedulertype);
         VIR_FREE(schedulertype);
     } else {
         vshPrint(ctl, "%-15s: %s\n", _("Scheduler"), _("Unknown"));