X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Ftcp_keep_alive.c;h=81d0850245377ffdb90c762faefcdb572b0ee67b;hp=0cadbad74e6c4309eee2c2d1c0d54ed2c02ea1a1;hb=505b2d90aa87592186ecc2a119cf67fb3f90d168;hpb=cbfbb78f972077ba819714a792ca37417c2071fa diff --git a/src/bin/lttng-relayd/tcp_keep_alive.c b/src/bin/lttng-relayd/tcp_keep_alive.c index 0cadbad74..81d085024 100644 --- a/src/bin/lttng-relayd/tcp_keep_alive.c +++ b/src/bin/lttng-relayd/tcp_keep_alive.c @@ -1,18 +1,8 @@ /* - * Copyright (C) 2017 - Jonathan Rajotte + * Copyright (C) 2017 Jonathan Rajotte * - * 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. */ #include @@ -523,10 +513,10 @@ error: /* Initialize the TCP keep-alive configuration. */ __attribute__((constructor)) static -int tcp_keep_alive_init(void) +void tcp_keep_alive_init(void) { tcp_keep_alive_init_support(&support); - return tcp_keep_alive_init_config(&support, &config); + (void) tcp_keep_alive_init_config(&support, &config); } /*