mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-13 05:00:17 +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) (cherry picked from commit7ba2040caa)
This commit is contained in:
parent
6f39520ee9
commit
fb4d8705dd
1 changed files with 0 additions and 1 deletions
|
|
@ -693,7 +693,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