X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust%2Fclock.h;h=82a7b45cd5294a3f35c63e172ea8105d0e5c2e0d;hb=545c85f844ecc49a62c6889e73d0bc466b8e6935;hp=1523be09d3a747395f9421d14864fc9e3a597ed3;hpb=95c5cc3c3256d17894154e967e3d3e55b4a223e2;p=lttng-ust.git diff --git a/liblttng-ust/clock.h b/liblttng-ust/clock.h index 1523be09..82a7b45c 100644 --- a/liblttng-ust/clock.h +++ b/liblttng-ust/clock.h @@ -25,7 +25,11 @@ #include #include #include -#include "lttng-ust-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;