X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Fclock.h;h=b4d17e785e164e3ae9a59c89fd7a897853754bc8;hb=19d8b1b3cecac9a52cf8e0e381854703c141ec5e;hp=82a7b45cd5294a3f35c63e172ea8105d0e5c2e0d;hpb=5e8445c48358d4d943c61e5cd94429fc75047d63;p=lttng-ust.git diff --git a/liblttng-ust/clock.h b/liblttng-ust/clock.h index 82a7b45c..b4d17e78 100644 --- a/liblttng-ust/clock.h +++ b/liblttng-ust/clock.h @@ -25,11 +25,7 @@ #include #include #include - -/* - * Includes final \0. - */ -#define CLOCK_UUID_LEN 37 +#include "uuid.h" /* TRACE CLOCK */ @@ -71,12 +67,12 @@ const int trace_clock_uuid(char *uuid) if (!fp) { return -ENOENT; } - len = fread(uuid, 1, CLOCK_UUID_LEN - 1, fp); - if (len < CLOCK_UUID_LEN - 1) { + len = fread(uuid, 1, LTTNG_UST_UUID_STR_LEN - 1, fp); + if (len < LTTNG_UST_UUID_STR_LEN - 1) { ret = -EINVAL; goto end; } - uuid[CLOCK_UUID_LEN - 1] = '\0'; + uuid[LTTNG_UST_UUID_STR_LEN - 1] = '\0'; end: fclose(fp); return ret;