X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fsessiond-comm%2Finet.h;h=03549fabd181f19b0ae54d34ba35d366ea62e36e;hb=2a85be8e0e679da996b48252b1d9aebb9bb29126;hp=83209bb719fff759e4719ed48f34cf69bb8fd7a2;hpb=d831c2497e9e8b2360cbe2026fdb2d736fa07641;p=lttng-tools.git diff --git a/src/common/sessiond-comm/inet.h b/src/common/sessiond-comm/inet.h index 83209bb71..03549fabd 100644 --- a/src/common/sessiond-comm/inet.h +++ b/src/common/sessiond-comm/inet.h @@ -18,7 +18,6 @@ #ifndef _LTTCOMM_INET_H #define _LTTCOMM_INET_H -#define _GNU_SOURCE #include #include "sessiond-comm.h" @@ -58,8 +57,8 @@ extern int lttcomm_listen_inet_sock(struct lttcomm_sock *sock, int backlog); extern ssize_t lttcomm_recvmsg_inet_sock(struct lttcomm_sock *sock, void *buf, size_t len, int flags); -extern ssize_t lttcomm_sendmsg_inet_sock(struct lttcomm_sock *sock, void *buf, - size_t len, int flags); +extern ssize_t lttcomm_sendmsg_inet_sock(struct lttcomm_sock *sock, + const void *buf, size_t len, int flags); /* Initialize inet communication layer. */ extern void lttcomm_inet_init(void);