Fix: define _LGPL_SOURCE in C files
[lttng-tools.git] / src / bin / lttng-consumerd / health-consumerd.c
index 1b649baa991d71ca55243defd516a483cd69a053..bd47f0c497c042c5ec247f8537a62822f89938e4 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <fcntl.h>
 #include <getopt.h>
 #include <grp.h>
@@ -303,7 +304,7 @@ restart:
 
                assert(msg.cmd == HEALTH_CMD_CHECK);
 
-               reply.ret_code = 0;
+               memset(&reply, 0, sizeof(reply));
                for (i = 0; i < NR_HEALTH_CONSUMERD_TYPES; i++) {
                        /*
                         * health_check_state return 0 if thread is in
This page took 0.024353 seconds and 5 git commands to generate.