]> sigrok.org Git - libsigrok.git/commitdiff
output/srzip: Minor whitespace fixes.
authorUwe Hermann <redacted>
Tue, 15 Mar 2016 17:40:50 +0000 (18:40 +0100)
committerUwe Hermann <redacted>
Tue, 15 Mar 2016 17:40:50 +0000 (18:40 +0100)
src/output/srzip.c

index a03f003e8503578927561ea09fcfffedda583d35..aa3c37577d33fbe17dbf576f79f8da9986017993 100644 (file)
@@ -110,15 +110,15 @@ static int zip_create(const struct sr_output *o)
        for (l = o->sdi->channels; l; l = l->next) {
                ch = l->data;
                switch (ch->type) {
-                       case SR_CHANNEL_LOGIC:
-                               logic_channels++;
-                               break;
-                       case SR_CHANNEL_ANALOG:
-                               if (outc->min_analog_index == -1 ||
-                                               ch->index < outc->min_analog_index)
-                                       outc->min_analog_index = ch->index;
-                               analog_channels++;
-                               break;
+               case SR_CHANNEL_LOGIC:
+                       logic_channels++;
+                       break;
+               case SR_CHANNEL_ANALOG:
+                       if (outc->min_analog_index == -1 ||
+                                       ch->index < outc->min_analog_index)
+                               outc->min_analog_index = ch->index;
+                       analog_channels++;
+                       break;
                }
        }
 
@@ -128,13 +128,13 @@ static int zip_create(const struct sr_output *o)
        for (l = o->sdi->channels; l; l = l->next) {
                ch = l->data;
                switch (ch->type) {
-                       case SR_CHANNEL_LOGIC:
-                               s = g_strdup_printf("probe%d", ch->index + 1);
-                               break;
-                       case SR_CHANNEL_ANALOG:
-                               s = g_strdup_printf("analog%d",
-                                               ch->index - outc->min_analog_index + 1);
-                               break;
+               case SR_CHANNEL_LOGIC:
+                       s = g_strdup_printf("probe%d", ch->index + 1);
+                       break;
+               case SR_CHANNEL_ANALOG:
+                       s = g_strdup_printf("analog%d",
+                                       ch->index - outc->min_analog_index + 1);
+                       break;
                }
                if (ch->enabled)
                        g_key_file_set_string(meta, devgroup, s, ch->name);