diff options
author | Paul Sladen | 2009-02-25 20:01:34 +0100 |
---|---|---|
committer | Nikias Bassen | 2009-02-25 20:01:34 +0100 |
commit | 523c44d0018c2e8480b37ac917aef7469b4b3a65 (patch) | |
tree | 981015afabe6df3574bb7ee06c82bd438b7f29fe /sock_stuff.c | |
parent | 6e2946da89ce8c44ac2b78e49c8fc934974d021d (diff) | |
download | usbmuxd-523c44d0018c2e8480b37ac917aef7469b4b3a65.tar.gz usbmuxd-523c44d0018c2e8480b37ac917aef7469b4b3a65.tar.bz2 |
A Readme, Makefile updates and cosmetic changes.
Diffstat (limited to 'sock_stuff.c')
-rw-r--r-- | sock_stuff.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sock_stuff.c b/sock_stuff.c index 1a23bc1..3d11a27 100644 --- a/sock_stuff.c +++ b/sock_stuff.c @@ -208,13 +208,13 @@ int check_fd(int fd, fd_mode fdm, unsigned int timeout) do { eagain = 0; switch(fdm) { - case fdread: + case FD_READ: sret = select(fd+1,&fds,NULL,NULL,&to); break; - case fdwrite: + case FD_WRITE: sret = select(fd+1,NULL,&fds,NULL,&to); break; - case fdexcept: + case FD_EXCEPT: sret = select(fd+1,NULL,NULL,&fds,&to); break; } @@ -255,7 +255,7 @@ int recv_buf_timeout(int fd, void *data, size_t length, int flags, unsigned int int result; // check if data is available - res = check_fd(fd, fdread, timeout); + res = check_fd(fd, FD_READ, timeout); if (res <= 0) { return res; } |