summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-05-16 13:23:07 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-05-16 13:23:07 +0200
commitcfc85b7fea595276eb3ebe11f33cafb738602b58 (patch)
treec5c3394435ba15b45e21fa4ce5b43e29b516bd27 /src/plugins
parent2a3d98c996eeefcaed1559eebfadc74146e0be53 (diff)
downloadweechat-cfc85b7fea595276eb3ebe11f33cafb738602b58.zip
typing: fix type and name of variable for key in hashtable typing_status_nicks
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/typing/typing.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/typing/typing.c b/src/plugins/typing/typing.c
index 51fc3385a..5db242320 100644
--- a/src/plugins/typing/typing.c
+++ b/src/plugins/typing/typing.c
@@ -289,17 +289,17 @@ typing_status_nicks_status_map_cb (void *data,
struct t_hashtable *hashtable,
const void *key, const void *value)
{
- const char *ptr_nick;
+ struct t_gui_buffer *ptr_buffer;
struct t_typing_status *ptr_typing_status;
time_t current_time;
int delay_purge_pause, delay_purge_typing;
current_time = *((time_t *)data);
- ptr_nick = (const char *)key;
+ ptr_buffer = (struct t_gui_buffer *)key;
ptr_typing_status = (struct t_typing_status *)value;
- if (!ptr_nick || !ptr_typing_status)
+ if (!ptr_buffer || !ptr_typing_status)
return;
delay_purge_pause = weechat_config_integer (