From: Ruben Kerkhof Date: Sun, 20 Mar 2016 10:53:13 +0000 (+0100) Subject: Fix indentation in previous commit X-Git-Tag: collectd-5.5.2~6^2~16 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=581387d331b78db182a1651005a196152eff8513;p=collectd.git Fix indentation in previous commit --- diff --git a/src/write_http.c b/src/write_http.c index bbd94af1..c2968290 100644 --- a/src/write_http.c +++ b/src/write_http.c @@ -56,7 +56,7 @@ struct wh_callback_s int format; CURL *curl; - struct curl_slist *headers; + struct curl_slist *headers; char curl_errbuf[CURL_ERROR_SIZE]; char send_buffer[4096]; @@ -113,7 +113,7 @@ static int wh_callback_init (wh_callback_t *cb) /* {{{ */ curl_easy_setopt (cb->curl, CURLOPT_NOSIGNAL, 1L); curl_easy_setopt (cb->curl, CURLOPT_USERAGENT, PACKAGE_NAME"/"PACKAGE_VERSION); - cb->headers = NULL; + cb->headers = NULL; cb->headers = curl_slist_append (cb->headers, "Accept: */*"); if (cb->format == WH_FORMAT_JSON) cb->headers = curl_slist_append (cb->headers, "Content-Type: application/json"); @@ -264,11 +264,11 @@ static void wh_callback_free (void *data) /* {{{ */ curl_easy_cleanup (cb->curl); - if (cb->headers != NULL) - { - curl_slist_free_all (cb->headers); - cb->headers = NULL; - } + if (cb->headers != NULL) + { + curl_slist_free_all (cb->headers); + cb->headers = NULL; + } sfree (cb->location); sfree (cb->user); @@ -531,7 +531,7 @@ static int wh_config_url (oconfig_item_t *ci) /* {{{ */ cb->cacert = NULL; cb->format = WH_FORMAT_COMMAND; cb->curl = NULL; - cb->headers = NULL; + cb->headers = NULL; pthread_mutex_init (&cb->send_lock, /* attr = */ NULL);