Rename struct lttng_event_common to struct lttng_ust_event_common
[lttng-ust.git] / liblttng-ust / lttng-events.c
index 0971f9eb2a7cb0bb03d72d2006a983cced5af7a2..cf6f4dad897cb86a413bb5bb6dbdb03ebfef8e61 100644 (file)
@@ -774,12 +774,12 @@ int lttng_event_recorder_create(const struct lttng_event_desc *desc,
        }
        event_recorder->struct_size = sizeof(struct lttng_ust_event_recorder);
 
-       event_recorder->parent = zmalloc(sizeof(struct lttng_event_common));
+       event_recorder->parent = zmalloc(sizeof(struct lttng_ust_event_common));
        if (!event_recorder->parent) {
                ret = -ENOMEM;
                goto parent_error;
        }
-       event_recorder->parent->struct_size = sizeof(struct lttng_event_common);
+       event_recorder->parent->struct_size = sizeof(struct lttng_ust_event_common);
 
        event_recorder_priv = zmalloc(sizeof(struct lttng_ust_event_recorder_private));
        if (!event_recorder_priv) {
This page took 0.023251 seconds and 4 git commands to generate.