summaryrefslogtreecommitdiffstats
path: root/libusbmuxd
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-05-24 17:32:39 +0200
committerGravatar Nikias Bassen2010-05-26 01:39:27 +0200
commitc85b32434962a2999f9e6872bba4d24433e13577 (patch)
tree2cc9b0ba3ec9bbb7bc9621984175b6e0c6d22379 /libusbmuxd
parent93819beb8ee272f7e03d9c92ab0e02e1bb24c7c0 (diff)
downloadusbmuxd-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')
-rw-r--r--libusbmuxd/sock_stuff.c8
-rw-r--r--libusbmuxd/sock_stuff.h6
2 files changed, 7 insertions, 7 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)
254 do { 254 do {
255 eagain = 0; 255 eagain = 0;
256 switch (fdm) { 256 switch (fdm) {
257 case FD_READ: 257 case FDM_READ:
258 sret = select(fd + 1, &fds, NULL, NULL, pto); 258 sret = select(fd + 1, &fds, NULL, NULL, pto);
259 break; 259 break;
260 case FD_WRITE: 260 case FDM_WRITE:
261 sret = select(fd + 1, NULL, &fds, NULL, pto); 261 sret = select(fd + 1, NULL, &fds, NULL, pto);
262 break; 262 break;
263 case FD_EXCEPT: 263 case FDM_EXCEPT:
264 sret = select(fd + 1, NULL, NULL, &fds, pto); 264 sret = select(fd + 1, NULL, NULL, &fds, pto);
265 break; 265 break;
266 default: 266 default:
@@ -308,7 +308,7 @@ int recv_buf_timeout(int fd, void *data, size_t length, int flags,
308 int result; 308 int result;
309 309
310 // check if data is available 310 // check if data is available
311 res = check_fd(fd, FD_READ, timeout); 311 res = check_fd(fd, FDM_READ, timeout);
312 if (res <= 0) { 312 if (res <= 0) {
313 return res; 313 return res;
314 } 314 }
diff --git a/libusbmuxd/sock_stuff.h b/libusbmuxd/sock_stuff.h
index 282da68..eb53359 100644
--- a/libusbmuxd/sock_stuff.h
+++ b/libusbmuxd/sock_stuff.h
@@ -27,9 +27,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
27#include <stdint.h> 27#include <stdint.h>
28 28
29enum fd_mode { 29enum fd_mode {
30 FD_READ, 30 FDM_READ,
31 FD_WRITE, 31 FDM_WRITE,
32 FD_EXCEPT 32 FDM_EXCEPT
33}; 33};
34typedef enum fd_mode fd_mode; 34typedef enum fd_mode fd_mode;
35 35