X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust-ctl%2Fustctl.c;h=e1c9ac7dbd3e269c884c90461e0e863577d32b75;hb=5f6daaef86c3b4cff5af523cbbd8f2630634259d;hp=9acce7a99b9d55fac380fb782c7f70e4e78f8e62;hpb=14e0a13576200091ccaba54c89692ee21672a700;p=lttng-ust.git diff --git a/liblttng-ust-ctl/ustctl.c b/liblttng-ust-ctl/ustctl.c index 9acce7a9..e1c9ac7d 100644 --- a/liblttng-ust-ctl/ustctl.c +++ b/liblttng-ust-ctl/ustctl.c @@ -2900,7 +2900,10 @@ int ustctl_counter_clear(struct ustctl_daemon_counter *counter, return counter->ops->counter_clear(counter->counter, dimension_indexes); } -static __attribute__((constructor)) +static +void ustctl_init(void) + __attribute__((constructor)); +static void ustctl_init(void) { ust_err_init(); @@ -2911,7 +2914,10 @@ void ustctl_init(void) lib_ringbuffer_signal_init(); } -static __attribute__((destructor)) +static +void ustctl_exit(void) + __attribute__((destructor)); +static void ustctl_exit(void) { lttng_ust_counter_clients_exit();