Fix some warnings, GitHub issue 2382.

This commit is contained in:
nicm
2020-09-16 18:37:55 +00:00
parent 1fed7e84a3
commit 869c0e860f
5 changed files with 10 additions and 30 deletions

4
utf8.c
View File

@ -101,9 +101,9 @@ utf8_put_item(const char *data, size_t size, u_int *index)
ui = utf8_item_by_data(data, size);
if (ui != NULL) {
*index = ui->index;
log_debug("%s: found %.*s = %u", __func__, (int)size, data,
*index);
*index = ui->index;
return (0);
}
@ -118,8 +118,8 @@ utf8_put_item(const char *data, size_t size, u_int *index)
ui->size = size;
RB_INSERT(utf8_data_tree, &utf8_data_tree, ui);
log_debug("%s: added %.*s = %u", __func__, (int)size, data, *index);
*index = ui->index;
log_debug("%s: added %.*s = %u", __func__, (int)size, data, *index);
return (0);
}