projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix set but no use variables warnings
[lttng-tools.git]
/
lttng
/
commands
/
list.c
diff --git
a/lttng/commands/list.c
b/lttng/commands/list.c
index 241a0434549efe8891b9742845117664e2f0e874..0b4afa308047b3ce951b27c2519494b61f1bf269 100644
(file)
--- a/
lttng/commands/list.c
+++ b/
lttng/commands/list.c
@@
-22,7
+22,7
@@
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
-#include "cmd.h"
+#include "
../
cmd.h"
static int opt_pid;
static int opt_channels;
static int opt_pid;
static int opt_channels;
@@
-89,6
+89,9
@@
static char *get_cmdline_by_pid(pid_t pid)
/* Caller must free() *cmdline */
cmdline = malloc(PATH_MAX);
ret = fread(cmdline, 1, PATH_MAX, fp);
/* Caller must free() *cmdline */
cmdline = malloc(PATH_MAX);
ret = fread(cmdline, 1, PATH_MAX, fp);
+ if (ret < 0) {
+ perror("fread proc list");
+ }
fclose(fp);
end:
fclose(fp);
end:
This page took
0.02405 seconds
and
4
git commands to generate.