projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Port: Use LTTNG_NAME_MAX instead of NAME_MAX
[lttng-tools.git]
/
src
/
lib
/
lttng-ctl
/
load.c
diff --git
a/src/lib/lttng-ctl/load.c
b/src/lib/lttng-ctl/load.c
index 21619a6839c83106b46692c6f19ddd9ee900b9e4..29998cda303e5c1894cff26ca4b90c26aa244cc8 100644
(file)
--- a/
src/lib/lttng-ctl/load.c
+++ b/
src/lib/lttng-ctl/load.c
@@
-16,6
+16,7
@@
*/
#define _GNU_SOURCE
+#define _LGPL_SOURCE
#include <assert.h>
#include <string.h>
@@
-83,7
+84,7
@@
int lttng_load_session_attr_set_session_name(
size_t len;
len = strlen(session_name);
- if (len >= NAME_MAX) {
+ if (len >=
LTTNG_
NAME_MAX) {
ret = -LTTNG_ERR_INVALID;
goto error;
}
This page took
0.022926 seconds
and
4
git commands to generate.