X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fenable_events.c;h=44cc70dcb1c63a26fbeccb380721eb2ef7622f64;hb=890d8fe47755c3bad936389cf48ffa141cff41c9;hp=5dcdd064496ce9afac74df7b367666bf80a5eda6;hpb=c69130a8727d8ede046f7f8d8d10a1366a2a6945;p=lttng-tools.git diff --git a/src/bin/lttng/commands/enable_events.c b/src/bin/lttng/commands/enable_events.c index 5dcdd0644..44cc70dcb 100644 --- a/src/bin/lttng/commands/enable_events.c +++ b/src/bin/lttng/commands/enable_events.c @@ -15,13 +15,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#define _GNU_SOURCE #define _LGPL_SOURCE #include #include #include #include -#include #include #include #include @@ -29,6 +27,7 @@ #include #include +#include /* Mi dependancy */ #include @@ -626,9 +625,9 @@ int check_exclusion_subsets(const char *event_name, char **new_exclusion_list; /* Excluder is a proper subset of event */ - string = strndup(next_excluder, excluder_length); + string = lttng_strndup(next_excluder, excluder_length); if (!string) { - PERROR("strndup error"); + PERROR("lttng_strndup error"); goto error; } new_exclusion_list = realloc(exclusion_list,