From 20c50fd7ef6e027c0e84a5dac48b95e229f36134 Mon Sep 17 00:00:00 2001 From: Adrian Date: Sun, 21 Aug 2022 20:46:21 +0200 Subject: notification_plugin_deinit: Set function signature to int(void *) Previously the function signature was inconsistent throughout src/fe-gtk/plugin-notification.{h,c}: One file had the signature int(void), while the other had int(void *). Since this type mismatch might lead to problems (especially with LTO) and the (possibly provided) function argument isn't used in the function's definition, this commit sets int(void *) as function signature for both the declaration and definition of the function. Fixes: https://github.com/hexchat/hexchat/issues/2726 --- src/fe-gtk/plugin-notification.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fe-gtk/plugin-notification.c') diff --git a/src/fe-gtk/plugin-notification.c b/src/fe-gtk/plugin-notification.c index 875b50f4..fc71d22b 100644 --- a/src/fe-gtk/plugin-notification.c +++ b/src/fe-gtk/plugin-notification.c @@ -246,7 +246,7 @@ notification_plugin_init (hexchat_plugin *plugin_handle, char **plugin_name, cha int -notification_plugin_deinit (void) +notification_plugin_deinit (void *unused_param) { notification_backend_deinit (); return 1; -- cgit 1.4.1