tUse curl-compatible type for socket descriptor - vaccinewars - be a doctor and… | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 46a73a9f98789b1ea1575e4539a9b614054f8c43 | |
parent c673103c5c005a9c4a7e27eedbbb2c2d156cae86 | |
Author: Ben Webb <[email protected]> | |
Date: Sat, 7 Nov 2020 17:24:01 -0800 | |
Use curl-compatible type for socket descriptor | |
Diffstat: | |
M src/network.c | 5 +++-- | |
M src/network.h | 5 +++-- | |
2 files changed, 6 insertions(+), 4 deletions(-) | |
--- | |
diff --git a/src/network.c b/src/network.c | |
t@@ -1158,8 +1158,9 @@ gboolean CurlConnectionPerform(CurlConnection *conn, int… | |
return HandleCurlMultiReturn(conn, mres, err); | |
} | |
-gboolean CurlConnectionSocketAction(CurlConnection *conn, int fd, int action, | |
- int *still_running, GError **err) | |
+gboolean CurlConnectionSocketAction(CurlConnection *conn, curl_socket_t fd, | |
+ int action, int *still_running, | |
+ GError **err) | |
{ | |
CURLMcode mres = curl_multi_socket_action(conn->multi, fd, action, | |
still_running); | |
diff --git a/src/network.h b/src/network.h | |
t@@ -196,8 +196,9 @@ gboolean OpenCurlConnection(CurlConnection *conn, char *UR… | |
void CloseCurlConnection(CurlConnection *conn); | |
gboolean CurlConnectionPerform(CurlConnection *conn, int *still_running, | |
GError **err); | |
-gboolean CurlConnectionSocketAction(CurlConnection *conn, int fd, int action, | |
- int *still_running, GError **err); | |
+gboolean CurlConnectionSocketAction(CurlConnection *conn, curl_socket_t fd, | |
+ int action, int *still_running, | |
+ GError **err); | |
char *CurlNextLine(CurlConnection *conn, char *ch); | |
void SetCurlCallback(CurlConnection *conn, GSourceFunc timer_cb, | |
GIOFunc socket_cb); |