projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename uuid.h wrapper to lttng-ust-uuid.h
[lttng-ust.git]
/
liblttng-ust
/
clock.h
diff --git
a/liblttng-ust/clock.h
b/liblttng-ust/clock.h
index 82a7b45cd5294a3f35c63e172ea8105d0e5c2e0d..1523be09d3a747395f9421d14864fc9e3a597ed3 100644
(file)
--- a/
liblttng-ust/clock.h
+++ b/
liblttng-ust/clock.h
@@
-25,11
+25,7
@@
#include <stdint.h>
#include <stddef.h>
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
#include <stdio.h>
-
-/*
- * Includes final \0.
- */
-#define CLOCK_UUID_LEN 37
+#include "lttng-ust-uuid.h"
/* TRACE CLOCK */
/* TRACE CLOCK */
@@
-71,12
+67,12
@@
const int trace_clock_uuid(char *uuid)
if (!fp) {
return -ENOENT;
}
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;
}
ret = -EINVAL;
goto end;
}
- uuid[
CLOCK_UUID
_LEN - 1] = '\0';
+ uuid[
LTTNG_UST_UUID_STR
_LEN - 1] = '\0';
end:
fclose(fp);
return ret;
end:
fclose(fp);
return ret;
This page took
0.025225 seconds
and
4
git commands to generate.