X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Futcp.c;h=acd8188bc3dca4e605465648ae108e70ee7b7b2a;hb=6ba5501ace0b03e1573e4ec2a3fee1491f64bfe2;hp=f81150bf7ee7ec06a1aa9d0e88c2ab5751eb743a;hpb=93dfd8a6689a3f176d460bd757a466b61b29181d;p=meshlink diff --git a/src/utcp.c b/src/utcp.c index f81150bf..acd8188b 100644 --- a/src/utcp.c +++ b/src/utcp.c @@ -17,16 +17,7 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#define _GNU_SOURCE - -#include -#include -#include -#include -#include -#include -#include -#include +#include "system.h" #include #include "utcp_priv.h" @@ -423,7 +414,6 @@ static int compare(const void *va, const void *vb) { const struct utcp_connection *b = *(struct utcp_connection **)vb; assert(a && b); - assert(a->src && b->src); int c = (int)a->src - (int)b->src; @@ -2053,7 +2043,6 @@ void utcp_abort_all_connections(struct utcp *utcp) { int utcp_close(struct utcp_connection *c) { if(c->rcvbuf.used) { - fprintf(stderr, "UTCP channel closed with stuff in receive buffer\n"); return reset_connection(c) ? 0 : -1; }