mirror of
https://github.com/weechat/weechat.git
synced 2026-07-09 11:13:12 +02:00
core: fix type of variables "buffer_name" and "buffer_type" sent to the hook_line callback
This commit is contained in:
@@ -131,9 +131,9 @@ hook_line_exec (struct t_gui_line *line)
|
||||
if (!hashtable)
|
||||
break;
|
||||
}
|
||||
HASHTABLE_SET_PTR("buffer", line->data->buffer);
|
||||
HASHTABLE_SET_PTR("buffer_name", line->data->buffer->full_name);
|
||||
HASHTABLE_SET_PTR("buffer_type",
|
||||
HASHTABLE_SET_POINTER("buffer", line->data->buffer);
|
||||
HASHTABLE_SET_STR("buffer_name", line->data->buffer->full_name);
|
||||
HASHTABLE_SET_STR("buffer_type",
|
||||
gui_buffer_type_string[line->data->buffer->type]);
|
||||
HASHTABLE_SET_INT("y", line->data->y);
|
||||
HASHTABLE_SET_TIME("date", line->data->date);
|
||||
|
||||
@@ -40,7 +40,7 @@ struct t_infolist_item;
|
||||
#define HASHTABLE_SET_TIME(__name, __time) \
|
||||
snprintf (str_value, sizeof (str_value), "%lld", (long long)__time); \
|
||||
hashtable_set (hashtable, __name, str_value);
|
||||
#define HASHTABLE_SET_PTR(__name, __pointer) \
|
||||
#define HASHTABLE_SET_POINTER(__name, __pointer) \
|
||||
if (__pointer) \
|
||||
{ \
|
||||
snprintf (str_value, sizeof (str_value), \
|
||||
|
||||
Reference in New Issue
Block a user