Fix: Use the packet's final size when mmap-ing the next packet
[babeltrace.git] / formats / ctf / metadata / ctf-visitor-generate-io-struct.c
index 626eb6bc03c44fdfd78ee9e3e00685c3c6094f5c..c7de92e61d06eda45017d9313aeb05501b7bbdcf 100644 (file)
@@ -875,7 +875,6 @@ struct bt_declaration *ctf_declaration_struct_visit(FILE *fd,
                        ret = get_unary_unsigned(min_align, &min_align_value);
                        if (ret) {
                                fprintf(fd, "[error] %s: unexpected unary expression for structure \"align\" attribute\n", __func__);
-                               ret = -EINVAL;
                                goto error;
                        }
                }
@@ -2400,6 +2399,7 @@ int ctf_clock_declaration_visit(FILE *fd, int depth, struct ctf_node *node,
                                goto error;
                        }
                        clock->absolute = ret;
+                       ret = 0;
                } else {
                        fprintf(fd, "[warning] %s: attribute \"%s\" is unknown in clock declaration.\n", __func__, left);
                }
This page took 0.037298 seconds and 4 git commands to generate.