const data_set_t *ds, const value_list_t *vl,
int store_rates,
char const *const *http_attrs,
- const int http_attrs_num) {
+ size_t http_attrs_num) {
char temp[512];
size_t offset = 0;
int status;
BUFFER_ADD(", \"tags\":\{");
BUFFER_ADD("\"host\": \"%s\"", vl->host);
- for (int j = 0; j < http_attrs_num; j += 2) {
+ for (size_t j = 0; j < http_attrs_num; j += 2) {
BUFFER_ADD(", \"%s\":", http_attrs[j]);
BUFFER_ADD(" \"%s\"", http_attrs[j + 1]);
}
char *buffer, /* {{{ */
size_t *ret_buffer_fill, size_t *ret_buffer_free, const data_set_t *ds,
const value_list_t *vl, int store_rates, size_t temp_size,
- char const *const *http_attrs, const int http_attrs_num) {
+ char const *const *http_attrs, size_t http_attrs_num) {
char temp[temp_size];
int status;
size_t *ret_buffer_fill, size_t *ret_buffer_free,
const data_set_t *ds, const value_list_t *vl,
int store_rates, char const *const *http_attrs,
- const int http_attrs_num) {
+ size_t http_attrs_num) {
if ((buffer == NULL) || (ret_buffer_fill == NULL) ||
(ret_buffer_free == NULL) || (ds == NULL) || (vl == NULL))
return (-EINVAL);
size_t *ret_buffer_free, const data_set_t *ds,
const value_list_t *vl, int store_rates,
char const *const *http_attrs,
- const int http_attrs_num);
+ size_t http_attrs_num);
int format_kairosdb_finalize(char *buffer, size_t *ret_buffer_fill,
size_t *ret_buffer_free);