mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-27 04:20:26 +01:00
all: remove wrong CURL option initialization
curl_multi_setopt() accepts CURLMOPT_* options, not CURLOPT_* ones. Found by GCC 10: clients/cloud-setup/nm-http-client.c:700:38: error: implicit conversion from ‘enum <anonymous>’ to ‘CURLMoption’ [-Werror=enum-conversion] 700 | curl_multi_setopt (priv->mhandle, CURLOPT_VERBOSE, 1); Fixes:69f048bf0c('cloud-setup: add tool for automatic IP configuration in cloud') (cherry picked from commitc11ac34f4c)
This commit is contained in:
parent
4e756b1f44
commit
7ba2040caa
2 changed files with 0 additions and 3 deletions
|
|
@ -693,8 +693,6 @@ constructed (GObject *object)
|
|||
curl_multi_setopt (priv->mhandle, CURLMOPT_SOCKETDATA, self);
|
||||
curl_multi_setopt (priv->mhandle, CURLMOPT_TIMERFUNCTION, _mhandle_timerfunction_cb);
|
||||
curl_multi_setopt (priv->mhandle, CURLMOPT_TIMERDATA, self);
|
||||
if (NM_CURL_DEBUG)
|
||||
curl_multi_setopt (priv->mhandle, CURLOPT_VERBOSE, 1);
|
||||
}
|
||||
|
||||
G_OBJECT_CLASS (nm_http_client_parent_class)->constructed (object);
|
||||
|
|
|
|||
|
|
@ -686,7 +686,6 @@ do_curl_request (NMConnectivityCheckHandle *cb_data)
|
|||
curl_multi_setopt (mhandle, CURLMOPT_SOCKETDATA, cb_data);
|
||||
curl_multi_setopt (mhandle, CURLMOPT_TIMERFUNCTION, multi_timer_cb);
|
||||
curl_multi_setopt (mhandle, CURLMOPT_TIMERDATA, cb_data);
|
||||
curl_multi_setopt (mhandle, CURLOPT_VERBOSE, 1);
|
||||
|
||||
switch (cb_data->addr_family) {
|
||||
case AF_INET:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue