summaryrefslogtreecommitdiffstats
path: root/sock_stuff.c
diff options
context:
space:
mode:
authorGravatar Paul Sladen2009-02-25 20:01:34 +0100
committerGravatar Nikias Bassen2009-02-25 20:01:34 +0100
commit523c44d0018c2e8480b37ac917aef7469b4b3a65 (patch)
tree981015afabe6df3574bb7ee06c82bd438b7f29fe /sock_stuff.c
parent6e2946da89ce8c44ac2b78e49c8fc934974d021d (diff)
downloadusbmuxd-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.c8
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;
}