Move hash table to common/ directory
[lttng-tools.git] / lttng-sessiond / event.c
index c8274c6bcf8a9100aed41422ff9db96734c01cf9..f4c48179df4c0c8606bd437aac46dca84fd0fa67 100644 (file)
@@ -15,6 +15,7 @@
  * Place - Suite 330, Boston, MA  02111-1307, USA.
  */
 
+#define _GNU_SOURCE
 #include <errno.h>
 #include <urcu/list.h>
 #include <string.h>
@@ -25,7 +26,7 @@
 
 #include "channel.h"
 #include "event.h"
-#include "hashtable.h"
+#include "../common/hashtable.h"
 #include "kernel.h"
 #include "ust-ctl.h"
 #include "ust-app.h"
@@ -372,7 +373,6 @@ int event_ust_enable_tracepoint(struct ltt_ust_session *usess, int domain,
 
        if (uevent->enabled) {
                /* It's already enabled so everything is OK */
-               ret = LTTCOMM_OK;
                goto end;
        }
 
@@ -414,13 +414,11 @@ int event_ust_enable_tracepoint(struct ltt_ust_session *usess, int domain,
                rcu_read_unlock();
        }
 
-       ret = LTTCOMM_OK;
-
-end:
        DBG("Event UST %s %s in channel %s", uevent->attr.name,
                        to_create ? "created" : "enabled", uchan->name);
 
-       return ret;
+end:
+       return LTTCOMM_OK;
 
 error:
        trace_ust_destroy_event(uevent);
This page took 0.023223 seconds and 4 git commands to generate.