summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rwxr-xr-xsrc/net/tcp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/tcp.c b/src/net/tcp.c
index 766fdbe..aae5e3c 100755
--- a/src/net/tcp.c
+++ b/src/net/tcp.c
@@ -48,10 +48,10 @@ sock_tcp_t* bindTcpSocket(char *address, int port, int proto)
assert( port > 0 && port < 65535 );
new = newSockTcp(proto);
+ ret = -1; // no Warnnings
assert( new != NULL );
-
if( new->proto == PROTO_TCPv4 )
{
new->sock = socket(AF_INET, SOCK_STREAM, 0);
@@ -198,6 +198,7 @@ sock_tcp_t* connectTcpSocket(char *ip, int port, int proto)
assert( port > 0 && port < 65535 );
new = newSockTcp(proto);
+ ret = -1; // no Warnnings
if( new->proto == PROTO_TCPv4 )
{