From 44f8cf9519a45f732613d76fc09a97648fd6e1d7 Mon Sep 17 00:00:00 2001 From: oroborus Date: Fri, 12 Sep 2008 18:22:43 +0000 Subject: - oprava warnningov, ktore objavil scarabeus git-svn-id: http://opensvn.csie.org/tuxanci_ng@280 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/net/tcp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/net') 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 ) { -- cgit v1.2.3