projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: clang llvm warnings
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
main.c
diff --git
a/src/bin/lttng-sessiond/main.c
b/src/bin/lttng-sessiond/main.c
index e1b3a828bc66f4ac68693ca55944cfbb8a9101c9..3b1611c0a0813dae62989f58b21ace057844d62c 100644
(file)
--- a/
src/bin/lttng-sessiond/main.c
+++ b/
src/bin/lttng-sessiond/main.c
@@
-3667,7
+3667,7
@@
skip_domain:
}
case LTTNG_LIST_CHANNELS:
{
}
case LTTNG_LIST_CHANNELS:
{
-
size_
t nb_chan;
+
in
t nb_chan;
struct lttng_channel *channels;
nb_chan = cmd_list_channels(cmd_ctx->lsm->domain.type,
struct lttng_channel *channels;
nb_chan = cmd_list_channels(cmd_ctx->lsm->domain.type,
@@
-4197,13
+4197,15
@@
static int set_permissions(char *rundir)
int ret;
gid_t gid;
int ret;
gid_t gid;
-
gid
= allowed_group();
- if (
gid
< 0) {
+
ret
= allowed_group();
+ if (
ret
< 0) {
WARN("No tracing group detected");
ret = 0;
goto end;
}
WARN("No tracing group detected");
ret = 0;
goto end;
}
+ gid = ret;
+
/* Set lttng run dir */
ret = chown(rundir, 0, gid);
if (ret < 0) {
/* Set lttng run dir */
ret = chown(rundir, 0, gid);
if (ret < 0) {
This page took
0.025853 seconds
and
5
git commands to generate.