mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
Fix "ISO C90 forbids mixed declarations and code"
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user