From d0d34deaad94635edae57edf37507f7f52923e0a Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Sun, 6 Mar 2016 10:00:41 +0000 Subject: [PATCH] Removed some out-commented code, updated license. FossilOrigin-Name: 7487e615b6426fe0843a5ef243ad76460b8cdc2b17b585f138748eea0e62c0a1 --- src/cw/conn_send_packet.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/cw/conn_send_packet.c b/src/cw/conn_send_packet.c index 28e810b1..38261440 100644 --- a/src/cw/conn_send_packet.c +++ b/src/cw/conn_send_packet.c @@ -1,7 +1,7 @@ /* - This file is part of libcapwap. + This file is part of actube. - libcapwap is free software: you can redistribute it and/or modify + actube 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 3 of the License, or (at your option) any later version. @@ -28,14 +28,6 @@ int conn_send_packet(struct conn * conn, const uint8_t * buffer, int len) { -/* -#ifdef WITH_CW_LOG_DEBUG - char addrstr[64]; - sock_addrtostr((struct sockaddr*)&conn->addr,addrstr,64); - cw_log_debug1("Sending packet to %s, len=%d",addrstr,len); - cw_log_debug2_dump(buffer,len,"Packet data for packet, sent to %s",addrstr); -#endif -*/ int n; while((n=sendto( conn->sock, buffer, len, 0, (struct sockaddr*)&conn->addr, @@ -43,6 +35,8 @@ int conn_send_packet(struct conn * conn, const uint8_t * buffer, int len) if(errno == EINTR) continue; + + return n; }