Fix UST SIGPIPE handling
[lttng-ust.git] / liblttng-ust / clock.h
index b4d17e785e164e3ae9a59c89fd7a897853754bc8..82a7b45cd5294a3f35c63e172ea8105d0e5c2e0d 100644 (file)
 #include <stdint.h>
 #include <stddef.h>
 #include <stdio.h>
-#include "uuid.h"
+
+/*
+ * Includes final \0.
+ */
+#define CLOCK_UUID_LEN         37
 
 /* TRACE CLOCK */
 
@@ -67,12 +71,12 @@ const int trace_clock_uuid(char *uuid)
        if (!fp) {
                return -ENOENT;
        }
-       len = fread(uuid, 1, LTTNG_UST_UUID_STR_LEN - 1, fp);
-       if (len < LTTNG_UST_UUID_STR_LEN - 1) {
+       len = fread(uuid, 1, CLOCK_UUID_LEN - 1, fp);
+       if (len < CLOCK_UUID_LEN - 1) {
                ret = -EINVAL;
                goto end;
        }
-       uuid[LTTNG_UST_UUID_STR_LEN - 1] = '\0';
+       uuid[CLOCK_UUID_LEN - 1] = '\0';
 end:
        fclose(fp);
        return ret;
This page took 0.023221 seconds and 4 git commands to generate.