mirror of
https://github.com/moparisthebest/curl
synced 2024-11-12 04:25:08 -05:00
Cleanup no longer used macros
This commit is contained in:
parent
2858935187
commit
a11c8a6ea0
10
lib/select.c
10
lib/select.c
@ -53,7 +53,6 @@
|
|||||||
|
|
||||||
#if defined(USE_WINSOCK) || defined(TPF)
|
#if defined(USE_WINSOCK) || defined(TPF)
|
||||||
#define VERIFY_SOCK(x) do { } while (0)
|
#define VERIFY_SOCK(x) do { } while (0)
|
||||||
#define VERIFY_NFDS(x) do { } while (0)
|
|
||||||
#else
|
#else
|
||||||
#define VALID_SOCK(s) (((s) >= 0) && ((s) < FD_SETSIZE))
|
#define VALID_SOCK(s) (((s) >= 0) && ((s) < FD_SETSIZE))
|
||||||
#define VERIFY_SOCK(x) do { \
|
#define VERIFY_SOCK(x) do { \
|
||||||
@ -62,13 +61,6 @@
|
|||||||
return -1; \
|
return -1; \
|
||||||
} \
|
} \
|
||||||
} while(0)
|
} while(0)
|
||||||
#define VALID_NFDS(n) (((n) >= 0) && ((n) <= FD_SETSIZE))
|
|
||||||
#define VERIFY_NFDS(x) do { \
|
|
||||||
if(!VALID_NFDS(x)) { \
|
|
||||||
SET_SOCKERRNO(EINVAL); \
|
|
||||||
return -1; \
|
|
||||||
} \
|
|
||||||
} while(0)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Convenience local macros */
|
/* Convenience local macros */
|
||||||
@ -81,8 +73,6 @@
|
|||||||
#define error_is_EINTR (0)
|
#define error_is_EINTR (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define SMALL_POLLNFDS 0x20
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Internal function used for waiting a specific amount of ms
|
* Internal function used for waiting a specific amount of ms
|
||||||
* in Curl_socket_ready() and Curl_poll() when no file descriptor
|
* in Curl_socket_ready() and Curl_poll() when no file descriptor
|
||||||
|
Loading…
Reference in New Issue
Block a user