diff options
author | wtc <devnull@localhost> | 1998-04-09 19:44:46 +0000 |
---|---|---|
committer | wtc <devnull@localhost> | 1998-04-09 19:44:46 +0000 |
commit | 700ce0d36a1312c43024981cea5c85df419c2486 (patch) | |
tree | e61fc59b04d6f722e8eeb77c3535bfb4d2641e67 | |
parent | 5e056e709790bf19d124d03d2e9039b70e57e3d9 (diff) | |
download | nspr-hg-700ce0d36a1312c43024981cea5c85df419c2486.tar.gz |
Fixed 'unused variable' warning for the variable 'nfds' in select()
on local-threads-only platforms. This is pointed out by many people,
including Nat <gnat@frii.com>.
-rw-r--r-- | pr/src/md/unix/uxwrap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pr/src/md/unix/uxwrap.c b/pr/src/md/unix/uxwrap.c index 9fc0fd3d..7eef902f 100644 --- a/pr/src/md/unix/uxwrap.c +++ b/pr/src/md/unix/uxwrap.c @@ -106,7 +106,6 @@ int select(int width, fd_set *rd, fd_set *wr, fd_set *ex, struct timeval *tv) #endif { int i; - int nfds; int npds; void *pollset; PRPollDesc *pd; @@ -140,8 +139,7 @@ int select(int width, fd_set *rd, fd_set *wr, fd_set *ex, struct timeval *tv) #ifndef _PR_LOCAL_THREADS_ONLY if (_PR_IS_NATIVE_THREAD(_PR_MD_CURRENT_THREAD())) { - nfds = _MD_SELECT(width, rd, wr, ex, tv); - return(nfds); + return _MD_SELECT(width, rd, wr, ex, tv); } #endif |