Use UST comm lib
[lttng-tools.git] / ltt-sessiond / ust-comm.c
index 455d40c0af68cedb941120b5759d05fb5e4e75be..4a54bf78429e0172a1c7ddfbaa385c0aa98f1a74 100644 (file)
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  */
 
+#include <config.h>
 #include <stdlib.h>
-
 #include <lttngerr.h>
-
+#include <ust/lttng-ust-comm.h>
 #include "ust-comm.h"
 
 /*
@@ -42,7 +42,7 @@ struct lttcomm_ust_reply *ustcomm_send_command(int sock,
        DBG2("Sending UST command %d to sock %d", msg->cmd, sock);
 
        /* Send UST msg */
-       len = lttcomm_send_unix_sock(sock, msg, sizeof(*msg));
+       len = ustcomm_send_unix_sock(sock, msg, sizeof(*msg));
        if (len < 0) {
                goto error;
        }
@@ -56,7 +56,7 @@ struct lttcomm_ust_reply *ustcomm_send_command(int sock,
        DBG2("Receiving UST reply on sock %d", sock);
 
        /* Get UST reply */
-       len = lttcomm_recv_unix_sock(sock, reply, sizeof(*reply));
+       len = ustcomm_recv_unix_sock(sock, reply, sizeof(*reply));
        if (len < 0 || len < sizeof(*reply)) {
                goto error;
        }
This page took 0.024613 seconds and 5 git commands to generate.