Based on "-O3 -Werror -Wall -Wextra -Wformat-security" output.
return 0;
} /* tbl_result_dispatch */
-static int tbl_parse_line(tbl_t *tbl, char *line, size_t len) {
+static int tbl_parse_line(tbl_t *tbl, char *line) {
char *fields[tbl->max_colnum + 1];
size_t i = 0;
log_warn("Table %s: Truncated line: %s", tbl->file, buf);
}
- if (tbl_parse_line(tbl, buf, sizeof(buf)) != 0) {
+ if (tbl_parse_line(tbl, buf) != 0) {
log_warn("Table %s: Failed to parse line: %s", tbl->file, buf);
continue;
}
}
static int ws_format_name(char *ret, int ret_len, const value_list_t *vl,
- const struct ws_callback *cb, const char *ds_name) {
+ const char *ds_name) {
if (ds_name != NULL) {
snprintf(ret, ret_len, "%s.%s", vl->type, ds_name);
ds_name = ds->ds[i].name;
/* Copy the identifier to 'key' and escape it. */
- status = ws_format_name(key, sizeof(key), vl, cb, ds_name);
+ status = ws_format_name(key, sizeof(key), vl, ds_name);
if (status != 0) {
ERROR("write_syslog plugin: error with format_name");
return status;
}
static int wt_format_name(char *ret, int ret_len, const value_list_t *vl,
- const struct wt_callback *cb, const char *ds_name) {
+ const char *ds_name) {
int status;
char *temp = NULL;
const char *prefix = "";
ds_name = ds->ds[i].name;
/* Copy the identifier to 'key' and escape it. */
- status = wt_format_name(key, sizeof(key), vl, cb, ds_name);
+ status = wt_format_name(key, sizeof(key), vl, ds_name);
if (status != 0) {
ERROR("write_tsdb plugin: error with format_name");
return status;