X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fwrite_http.c;h=2dd13c5b1feac51b23b03272781fea312e518b79;hb=e746ad785774de37a30302fef65f1c4aaf8698ab;hp=1c270bdf886c72fbe091885edb761df07ab29a16;hpb=be126043c2be20399d7670fe194645292018bde0;p=collectd.git diff --git a/src/write_http.c b/src/write_http.c index 1c270bdf..2dd13c5b 100644 --- a/src/write_http.c +++ b/src/write_http.c @@ -191,7 +191,7 @@ static int wh_callback_init(wh_callback_t *cb) /* {{{ */ } snprintf(cb->credentials, credentials_size, "%s:%s", cb->user, - (cb->pass == NULL) ? "" : cb->pass); + (cb->pass == NULL) ? "" : cb->pass); curl_easy_setopt(cb->curl, CURLOPT_USERPWD, cb->credentials); #endif curl_easy_setopt(cb->curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY); @@ -370,8 +370,8 @@ static int wh_write_command(const data_set_t *ds, } command_len = (size_t)snprintf(command, sizeof(command), - "PUTVAL %s interval=%.3f %s\r\n", key, - CDTIME_T_TO_DOUBLE(vl->interval), values); + "PUTVAL %s interval=%.3f %s\r\n", key, + CDTIME_T_TO_DOUBLE(vl->interval), values); if (command_len >= sizeof(command)) { ERROR("write_http plugin: Command buffer too small: " "Need %zu bytes.",