Fix: clang llvm warnings
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index e1b3a828bc66f4ac68693ca55944cfbb8a9101c9..3b1611c0a0813dae62989f58b21ace057844d62c 100644 (file)
@@ -3667,7 +3667,7 @@ skip_domain:
        }
        case LTTNG_LIST_CHANNELS:
        {
-               size_t nb_chan;
+               int nb_chan;
                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;
 
-       gid = allowed_group();
-       if (gid < 0) {
+       ret = allowed_group();
+       if (ret < 0) {
                WARN("No tracing group detected");
                ret = 0;
                goto end;
        }
 
+       gid = ret;
+
        /* Set lttng run dir */
        ret = chown(rundir, 0, gid);
        if (ret < 0) {
This page took 0.024331 seconds and 5 git commands to generate.