diff options
author | Nikias Bassen | 2010-05-24 17:32:39 +0200 |
---|---|---|
committer | Nikias Bassen | 2010-05-26 01:39:27 +0200 |
commit | c85b32434962a2999f9e6872bba4d24433e13577 (patch) | |
tree | 2cc9b0ba3ec9bbb7bc9621984175b6e0c6d22379 /libusbmuxd/sock_stuff.c | |
parent | 93819beb8ee272f7e03d9c92ab0e02e1bb24c7c0 (diff) | |
download | usbmuxd-c85b32434962a2999f9e6872bba4d24433e13577.tar.gz usbmuxd-c85b32434962a2999f9e6872bba4d24433e13577.tar.bz2 |
libusbmuxd: rename FD_* enum values to FDM_* to prevent conflicts
This seems to be a win32 issue only. But this rename doesn't hurt!
Diffstat (limited to 'libusbmuxd/sock_stuff.c')
-rw-r--r-- | libusbmuxd/sock_stuff.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libusbmuxd/sock_stuff.c b/libusbmuxd/sock_stuff.c index 487afda..141dd1a 100644 --- a/libusbmuxd/sock_stuff.c +++ b/libusbmuxd/sock_stuff.c @@ -254,13 +254,13 @@ int check_fd(int fd, fd_mode fdm, unsigned int timeout) do { eagain = 0; switch (fdm) { - case FD_READ: + case FDM_READ: sret = select(fd + 1, &fds, NULL, NULL, pto); break; - case FD_WRITE: + case FDM_WRITE: sret = select(fd + 1, NULL, &fds, NULL, pto); break; - case FD_EXCEPT: + case FDM_EXCEPT: sret = select(fd + 1, NULL, NULL, &fds, pto); break; default: @@ -308,7 +308,7 @@ int recv_buf_timeout(int fd, void *data, size_t length, int flags, int result; // check if data is available - res = check_fd(fd, FD_READ, timeout); + res = check_fd(fd, FDM_READ, timeout); if (res <= 0) { return res; } |