1
0
Fork 0
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:
Charles Kerr 2008-02-25 03:09:55 +00:00
parent f2f24e936d
commit e4a59e5e27

View file

@ -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;