clang-format check_curl

This commit is contained in:
Ahmet Oeztuerk 2026-05-19 11:03:16 +02:00
parent 5b6252c783
commit 8868e021b6

View file

@ -276,11 +276,12 @@ mp_subcheck check_http(const check_curl_config config, check_curl_working_state
/* Custom handling for timeouts, state might be set to non CRITICAL */
if (res == CURLE_OPERATION_TIMEDOUT) {
xasprintf(&sc_curl.output, _("cURL returned %d - %s"), res,
errbuf[0] ? errbuf : curl_easy_strerror(res));
errbuf[0] ? errbuf : curl_easy_strerror(res));
sc_curl = mp_set_subcheck_state(sc_curl, config.on_timeout_result_state);
} else {
xasprintf(&sc_curl.output, _("Error while performing connection: cURL returned %d - %s"),
res, errbuf[0] ? errbuf : curl_easy_strerror(res));
xasprintf(&sc_curl.output,
_("Error while performing connection: cURL returned %d - %s"), res,
errbuf[0] ? errbuf : curl_easy_strerror(res));
sc_curl = mp_set_subcheck_state(sc_curl, STATE_CRITICAL);
}
mp_add_subcheck_to_subcheck(&sc_result, sc_curl);