mirror of
https://github.com/transmission/transmission
synced 2024-12-24 08:43:27 +00:00
fix minor compiler warning.
This commit is contained in:
parent
f2f24e936d
commit
e4a59e5e27
1 changed files with 1 additions and 1 deletions
|
@ -486,7 +486,7 @@ tr_fdInit( int globalPeerLimit )
|
||||||
(rlim_t)(globalPeerLimit + NOFILE_BUFFER) );
|
(rlim_t)(globalPeerLimit + NOFILE_BUFFER) );
|
||||||
setrlimit( RLIMIT_NOFILE, &rlim );
|
setrlimit( RLIMIT_NOFILE, &rlim );
|
||||||
gFd->normalMax = rlim.rlim_cur - NOFILE_BUFFER;
|
gFd->normalMax = rlim.rlim_cur - NOFILE_BUFFER;
|
||||||
tr_dbg( "setrlimit( RLIMIT_NOFILE, %d )", rlim.rlim_cur );
|
tr_dbg( "setrlimit( RLIMIT_NOFILE, %d )", (int)rlim.rlim_cur );
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
gFd->normalMax = globalPeerLimit;
|
gFd->normalMax = globalPeerLimit;
|
||||||
|
|
Loading…
Reference in a new issue