mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Fix some warnings, GitHub issue 2382.
This commit is contained in:
4
utf8.c
4
utf8.c
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user