X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Flttng-ctl.c;h=0efc1591510fbff0b1eebf8f4e0bd313166204a6;hp=e6dbb678f265e58ae815234e965cfe7c486e69b4;hb=0c89d7959f4af7a2b39e925b2e8dc3a8954ccfa5;hpb=9ce5646a7ef9b8d7936c46649a21ee546fadd538 diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c index e6dbb678f..0efc15915 100644 --- a/src/lib/lttng-ctl/lttng-ctl.c +++ b/src/lib/lttng-ctl/lttng-ctl.c @@ -34,6 +34,7 @@ #include #include #include +#include #include "filter/filter-ast.h" #include "filter/filter-parser.h" @@ -1412,8 +1413,8 @@ static int set_health_socket_path(void) int lttng_health_check(enum lttng_health_component c) { int sock, ret; - struct lttcomm_health_msg msg; - struct lttcomm_health_data reply; + struct health_comm_msg msg; + struct health_comm_reply reply; /* Connect to the sesssion daemon */ sock = lttcomm_connect_unix_sock(health_sock_path); @@ -1422,7 +1423,7 @@ int lttng_health_check(enum lttng_health_component c) goto error; } - msg.cmd = LTTNG_HEALTH_CHECK; + msg.cmd = HEALTH_CMD_CHECK; msg.component = c; ret = lttcomm_send_unix_sock(sock, (void *)&msg, sizeof(msg));