X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Futcp-test.c;h=d1fb606fe31a822da7495d1222f505f9f1a99a19;hb=deb85047ebc713f0de6b14ac2c5918e5bbb6425d;hp=2a273de70463dbe4f39117cc50ed438dc46c4834;hpb=976c4e1591e60ba89e7dcc32b4a8106e7d4156e5;p=meshlink diff --git a/src/utcp-test.c b/src/utcp-test.c index 2a273de7..d1fb606f 100644 --- a/src/utcp-test.c +++ b/src/utcp-test.c @@ -1,16 +1,25 @@ -#define _GNU_SOURCE - -#include -#include -#include -#include -#include -#include -#include -#include -#include +/* + utcp-test.c -- Test application for UTCP + Copyright (C) 2014-2020 Guus Sliepen + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + 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 "system.h" #include - +#include #include "utcp.h" @@ -58,8 +67,8 @@ static void debug(const char *format, ...) { #define debug(...) do {} while(0) #endif -static ssize_t do_recv(struct utcp_connection *c, const void *data, size_t len) { - (void)c; +static ssize_t do_recv(struct utcp_connection *rc, const void *data, size_t len) { + (void)rc; if(!data || !len) { if(errno) {