mirror of
https://github.com/transmission/transmission
synced 2025-02-03 13:03:50 +00:00
Fix "ISO C90 forbids mixed declarations and code"
This commit is contained in:
parent
86257e03f1
commit
0a2c5efb65
1 changed files with 2 additions and 2 deletions
|
@ -394,12 +394,12 @@ tr_netBindTCP( const tr_address * addr, tr_port port, tr_bool suppressMsgs )
|
||||||
const int type = SOCK_STREAM;
|
const int type = SOCK_STREAM;
|
||||||
int addrlen;
|
int addrlen;
|
||||||
|
|
||||||
assert( tr_isAddress( addr ) );
|
|
||||||
|
|
||||||
#if defined( SO_REUSEADDR ) || defined( SO_REUSEPORT )
|
#if defined( SO_REUSEADDR ) || defined( SO_REUSEPORT )
|
||||||
int optval;
|
int optval;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
assert( tr_isAddress( addr ) );
|
||||||
|
|
||||||
if( ( s = createSocket( ( addr->type == TR_AF_INET ? AF_INET : AF_INET6 ),
|
if( ( s = createSocket( ( addr->type == TR_AF_INET ? AF_INET : AF_INET6 ),
|
||||||
type ) ) < 0 )
|
type ) ) < 0 )
|
||||||
return s;
|
return s;
|
||||||
|
|
Loading…
Reference in a new issue