diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-09-12 18:22:43 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-09-12 18:22:43 +0000 |
| commit | 44f8cf9519a45f732613d76fc09a97648fd6e1d7 (patch) | |
| tree | f112de28ae1fe62443e0ebf7a998255da4300867 /src/net/tcp.c | |
| parent | 559fbf278ff86d803c466ff1be99c62476e7f62c (diff) | |
- oprava warnningov, ktore objavil scarabeus
git-svn-id: http://opensvn.csie.org/tuxanci_ng@280 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/net/tcp.c')
| -rwxr-xr-x | src/net/tcp.c | 3 |
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 ) { |