mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 10:20:14 +01:00
connectivity: add compile time check that "curl_socket_t" is a typedef to plain "int"
On non-Windows, libcurl's "curl_socket_t" type is just a typedef for
int. We rely on that, because we use it as file descriptor.
Add a compile time check to ensure that.
(cherry picked from commit 970af59731)
This commit is contained in:
parent
a54ffc6c01
commit
4af9ae13e0
1 changed files with 2 additions and 0 deletions
|
|
@ -343,6 +343,8 @@ multi_socket_cb (CURL *e_handle, curl_socket_t fd, int what, void *userdata, voi
|
|||
ConCurlSockData *fdp = socketp;
|
||||
GIOCondition condition = 0;
|
||||
|
||||
(void) _NM_ENSURE_TYPE (int, fd);
|
||||
|
||||
if (what == CURL_POLL_REMOVE) {
|
||||
if (fdp) {
|
||||
curl_multi_assign (priv->concheck.curl_mhandle, fd, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue