]> sigrok.org Git - libsigrok.git/commitdiff
Minor cosmetics.
authorUwe Hermann <redacted>
Tue, 6 Jun 2017 10:17:44 +0000 (12:17 +0200)
committerUwe Hermann <redacted>
Tue, 6 Jun 2017 10:17:44 +0000 (12:17 +0200)
src/hardware/hantek-6xxx/api.c
src/output/srzip.c

index 08062add77ec07424012d6a6a78d490d23c63b62..a6aa68543775bc3644abc62ccde6c2f475f084a3 100644 (file)
@@ -824,7 +824,8 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi)
        devc = sdi->priv;
        devc->dev_state = STOPPING;
 
-       g_free(devc->sample_buf); devc->sample_buf = NULL;
+       g_free(devc->sample_buf);
+       devc->sample_buf = NULL;
 
        return SR_OK;
 }
index 43dbd16b0a05da2f852ada1d4c9d57d46dc4ddce..249fe057994aeeaf80b9106ae3b041a8c1fb7b5e 100644 (file)
@@ -260,8 +260,11 @@ static int zip_append(const struct sr_output *o, unsigned char *buf,
                if (!entry_name || strncmp(entry_name, "logic-1", 7) != 0)
                        continue;
                if (entry_name[7] == '\0') {
-                       /* This file has no extra chunks, just a single "logic-1".
-                        * Rename it to "logic-1-1" * and continue with chunk 2. */
+                       /*
+                        * This file has no extra chunks, just a single
+                        * "logic-1". Rename it to "logic-1-1" and continue
+                        * with chunk 2.
+                        */
                        if (zip_rename(archive, i, "logic-1-1") < 0) {
                                sr_err("Failed to rename 'logic-1' to 'logic-1-1': %s",
                                        zip_strerror(archive));