Fix: sessiond: cmd_enable_channel: negative error code used
[lttng-tools.git] / src / bin / lttng-sessiond / main.cpp
index d8d2caf8b2c9c387d4762b03d0968790584e0199..34e881c4d219aee6aea0d237982920fe0b2e4ba6 100644 (file)
@@ -795,7 +795,8 @@ end:
  * See config_entry_handler_cb comment in common/config/session-config.h for the
  * return value conventions.
  */
-static int config_entry_handler(const struct config_entry *entry, void *unused)
+static int config_entry_handler(const struct config_entry *entry,
+               void *unused __attribute__((unused)))
 {
        int ret = 0, i;
 
@@ -1172,7 +1173,8 @@ error:
  * Simply stop all worker threads, leaving main() return gracefully after
  * joining all threads and calling cleanup().
  */
-static void sighandler(int sig, siginfo_t *siginfo, void *arg)
+static void sighandler(int sig, siginfo_t *siginfo,
+               void *arg __attribute__((unused)))
 {
        switch (sig) {
        case SIGINT:
@@ -1359,6 +1361,7 @@ static void unregister_all_triggers(void)
        unsigned int trigger_count, i;
        const struct lttng_credentials creds = {
                .uid = LTTNG_OPTIONAL_INIT_VALUE(0),
+               .gid = LTTNG_OPTIONAL_INIT_UNSET,
        };
 
        DBG("Unregistering all triggers");
This page took 0.024324 seconds and 4 git commands to generate.