Fix "ISO C90 forbids mixed declarations and code"

This commit is contained in:
Erick Turnquist 2008-12-16 21:35:14 +00:00
parent 86257e03f1
commit 0a2c5efb65
1 changed files with 2 additions and 2 deletions

View File

@ -394,12 +394,12 @@ tr_netBindTCP( const tr_address * addr, tr_port port, tr_bool suppressMsgs )
const int type = SOCK_STREAM;
int addrlen;
assert( tr_isAddress( addr ) );
#if defined( SO_REUSEADDR ) || defined( SO_REUSEPORT )
int optval;
#endif
assert( tr_isAddress( addr ) );
if( ( s = createSocket( ( addr->type == TR_AF_INET ? AF_INET : AF_INET6 ),
type ) ) < 0 )
return s;