projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor relayd main/set_options/cleanup
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
list.c
diff --git
a/src/bin/lttng/commands/list.c
b/src/bin/lttng/commands/list.c
index 12499ee408f1e545b3afbe727f2b0c3659a23082..14e390a030445c690f03bae266ca16bb1dead774 100644
(file)
--- a/
src/bin/lttng/commands/list.c
+++ b/
src/bin/lttng/commands/list.c
@@
-16,6
+16,7
@@
*/
#define _GNU_SOURCE
*/
#define _GNU_SOURCE
+#define _LGPL_SOURCE
#include <inttypes.h>
#include <popt.h>
#include <stdio.h>
#include <inttypes.h>
#include <popt.h>
#include <stdio.h>
@@
-128,7
+129,7
@@
static char *get_cmdline_by_pid(pid_t pid)
}
/* Caller must free() *cmdline */
}
/* Caller must free() *cmdline */
- cmdline = malloc(PATH_MAX);
+ cmdline =
z
malloc(PATH_MAX);
if (!cmdline) {
perror("malloc cmdline");
goto end;
if (!cmdline) {
perror("malloc cmdline");
goto end;
This page took
0.02339 seconds
and
4
git commands to generate.