X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fsessiond-comm%2Finet6.h;h=b292848e3a42c487e93e7f3a446759c04a9bb83e;hp=4cb4dca3e038de36aab02a21619572f73092d2aa;hb=7bd95aee4660c6419a4a65429fc27754481e7e90;hpb=6364a07adde1072d595044a19359e61fc27940dd diff --git a/src/common/sessiond-comm/inet6.h b/src/common/sessiond-comm/inet6.h index 4cb4dca3e..b292848e3 100644 --- a/src/common/sessiond-comm/inet6.h +++ b/src/common/sessiond-comm/inet6.h @@ -1,24 +1,13 @@ /* - * Copyright (C) 2012 - David Goulet + * Copyright (C) 2012 David Goulet * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License, version 2 only, as - * published by the Free Software Foundation. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 51 - * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef _LTTCOMM_INET6_H #define _LTTCOMM_INET6_H -#define _GNU_SOURCE #include #include "sessiond-comm.h" @@ -39,7 +28,7 @@ extern int lttcomm_listen_inet6_sock(struct lttcomm_sock *sock, int backlog); extern ssize_t lttcomm_recvmsg_inet6_sock(struct lttcomm_sock *sock, void *buf, size_t len, int flags); -extern ssize_t lttcomm_sendmsg_inet6_sock(struct lttcomm_sock *sock, void *buf, - size_t len, int flags); +extern ssize_t lttcomm_sendmsg_inet6_sock(struct lttcomm_sock *sock, + const void *buf, size_t len, int flags); #endif /* _LTTCOMM_INET6_H */