X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Futils_format_json.c;h=bbc3dfdb4efc9b21be341e2e1ff2845c67e5ed33;hb=937c7cc7f9195b1579c7ebc198a9086eeec1a205;hp=ec198438abb8f064b8cedfadefaac4841fd6aba6;hpb=f5dd22c7af44798d3512d62f733b4e44a6c4ddb0;p=collectd.git diff --git a/src/utils_format_json.c b/src/utils_format_json.c index ec198438..bbc3dfdb 100644 --- a/src/utils_format_json.c +++ b/src/utils_format_json.c @@ -152,7 +152,7 @@ static int values_to_json (char *buffer, size_t buffer_size, /* {{{ */ } /* }}} int values_to_json */ static int dstypes_to_json (char *buffer, size_t buffer_size, /* {{{ */ - const data_set_t *ds, const value_list_t *vl) + const data_set_t *ds) { size_t offset = 0; int i; @@ -189,7 +189,7 @@ static int dstypes_to_json (char *buffer, size_t buffer_size, /* {{{ */ } /* }}} int dstypes_to_json */ static int dsnames_to_json (char *buffer, size_t buffer_size, /* {{{ */ - const data_set_t *ds, const value_list_t *vl) + const data_set_t *ds) { size_t offset = 0; int i; @@ -334,12 +334,12 @@ static int value_list_to_json (char *buffer, size_t buffer_size, /* {{{ */ return (status); BUFFER_ADD ("\"values\":%s", temp); - status = dstypes_to_json (temp, sizeof (temp), ds, vl); + status = dstypes_to_json (temp, sizeof (temp), ds); if (status != 0) return (status); BUFFER_ADD (",\"dstypes\":%s", temp); - status = dsnames_to_json (temp, sizeof (temp), ds, vl); + status = dsnames_to_json (temp, sizeof (temp), ds); if (status != 0) return (status); BUFFER_ADD (",\"dsnames\":%s", temp);