summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-04-06 17:00:39 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-04-06 17:00:39 +0200
commit890a0ea32d0454607c4e643f73b50d7a3b601ef6 (patch)
tree39cbdbe14f054ee154e5dcb2e65fe689b897855a
parentfcf955aca51dfe7dbc7a5210c59d5ccb85746574 (diff)
downloadcurl-bagder/select-remove-macro-typecast.tar.gz
select: remove typecase from SOCKET_WRITABLE/READABLE macrosbagder/select-remove-macro-typecast
So that they don't hide conversions-by-mistake
-rw-r--r--lib/select.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/select.h b/lib/select.h
index 56fe30367..2667d0ccf 100644
--- a/lib/select.h
+++ b/lib/select.h
@@ -82,9 +82,9 @@ int Curl_socket_check(curl_socket_t readfd, curl_socket_t readfd2,
curl_socket_t writefd,
time_t timeout_ms);
#define SOCKET_READABLE(x,z) \
- Curl_socket_check(x, CURL_SOCKET_BAD, CURL_SOCKET_BAD, (time_t)z)
+ Curl_socket_check(x, CURL_SOCKET_BAD, CURL_SOCKET_BAD, z)
#define SOCKET_WRITABLE(x,z) \
- Curl_socket_check(CURL_SOCKET_BAD, CURL_SOCKET_BAD, x, (time_t)z)
+ Curl_socket_check(CURL_SOCKET_BAD, CURL_SOCKET_BAD, x, z)
int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms);
int Curl_wait_ms(int timeout_ms);