Port: replace strerror_r() with glib g_strerror()
[babeltrace.git] / lib / ctf-ir / clock-class.c
index 87c3d6bbf74f587d5de6709c513096e2a6a14b9d..7390c66395e46297218b9c5099d55a3c72adfead 100644 (file)
@@ -34,6 +34,7 @@
 #include <babeltrace/ref.h>
 #include <babeltrace/compiler-internal.h>
 #include <babeltrace/types.h>
+#include <babeltrace/compat/string-internal.h>
 #include <inttypes.h>
 #include <babeltrace/object-internal.h>
 
@@ -456,7 +457,7 @@ int bt_ctf_clock_class_set_uuid(struct bt_ctf_clock_class *clock_class,
                goto end;
        }
 
-       memcpy(clock_class->uuid, uuid, sizeof(uuid_t));
+       memcpy(clock_class->uuid, uuid, BABELTRACE_UUID_LEN);
        clock_class->uuid_set = 1;
        BT_LOGV("Set clock class's UUID: addr=%p, name=\"%s\", "
                "uuid=\"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x\"",
This page took 0.023657 seconds and 4 git commands to generate.