1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 00:34:04 +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) );
setrlimit( RLIMIT_NOFILE, &rlim );
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
gFd->normalMax = globalPeerLimit;