projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
autoupdates
[pspp]
/
lib
/
select.c
diff --git
a/lib/select.c
b/lib/select.c
index 35645669dabd734c755be39dc857632672d01d58..5677fdd478f0e1fdb7f2dbf94351d6ccec1c2985 100644
(file)
--- a/
lib/select.c
+++ b/
lib/select.c
@@
-80,7
+80,7
@@
typedef DWORD (WINAPI *PNtQueryInformationFile)
#define IsConsoleHandle(h) (((long) (h) & 3) == 3)
static BOOL
#define IsConsoleHandle(h) (((long) (h) & 3) == 3)
static BOOL
-IsSocketHandle(HANDLE h)
+IsSocketHandle
(HANDLE h)
{
WSANETWORKEVENTS ev;
{
WSANETWORKEVENTS ev;
@@
-246,7
+246,7
@@
rpl_select (int nfds, fd_set *rfds, fd_set *wfds, fd_set *xfds,
wait_timeout = INFINITE;
else
{
wait_timeout = INFINITE;
else
{
- wait_timeout = timeout->tv_sec + timeout->tv_usec / 1000;
+ wait_timeout = timeout->tv_sec
* 1000
+ timeout->tv_usec / 1000;
/* select is also used as a portable usleep. */
if (!rfds && !wfds && !xfds)
/* select is also used as a portable usleep. */
if (!rfds && !wfds && !xfds)