From 57d79ecf9c6b0e014533a642677aaa367349d9c9 Mon Sep 17 00:00:00 2001 From: Jabber Developer Date: Wed, 25 Jun 2025 00:13:42 +0200 Subject: [PATCH] fix: add missing parameter types to function declarations Some functions were declared without parameters in header files, despite their implementations specifying arguments. This mismatch is deprecated in all versions of C and is disallowed in C23. This change updates the declarations to match their definitions, ensuring compatibility with C standards, avoiding potential undefined behavior, and improving support in tools and editors. --- src/tools/bookmark_ignore.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/bookmark_ignore.h b/src/tools/bookmark_ignore.h index b5720ec0..092c96c4 100644 --- a/src/tools/bookmark_ignore.h +++ b/src/tools/bookmark_ignore.h @@ -12,7 +12,7 @@ #include "xmpp/xmpp.h" -void bookmark_ignore_on_connect(); +void bookmark_ignore_on_connect(const char* const barejid); void bookmark_ignore_on_disconnect(); gboolean bookmark_ignored(Bookmark* bookmark); gchar** bookmark_ignore_list(gsize* len);