Fix some warnings, GitHub issue 2382.

This commit is contained in:
Nicholas Marriott
2020-09-30 13:35:51 +01:00
parent ec9e03d09a
commit cf8ef63c4a
3 changed files with 3 additions and 8 deletions

4
utf8.c
View File

@ -100,9 +100,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);
}
@ -117,8 +117,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);
}