mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-11 01:30:00 -04:00
check_curl clang-format
This commit is contained in:
parent
e73ec306c0
commit
5a1840a3ab
1 changed files with 2 additions and 2 deletions
|
|
@ -273,8 +273,8 @@ mp_subcheck check_http(const check_curl_config config, check_curl_working_state
|
|||
|
||||
/* Custom handling for timeouts */
|
||||
if (res == CURLE_OPERATION_TIMEDOUT) {
|
||||
xasprintf(&sc_curl.output, _("cURL returned %d - %s"),
|
||||
res, errbuf[0] ? errbuf : curl_easy_strerror(res));
|
||||
xasprintf(&sc_curl.output, _("cURL returned %d - %s"), res,
|
||||
errbuf[0] ? errbuf : curl_easy_strerror(res));
|
||||
sc_curl = mp_set_subcheck_state(sc_curl, config.on_timeout_result_state);
|
||||
mp_add_subcheck_to_subcheck(&sc_result, sc_curl);
|
||||
return sc_result;
|
||||
|
|
|
|||
Loading…
Reference in a new issue