From b9413988c93ae6f2682dbde327f66bdb9bfc4268 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 e52e128a..634b1db7 100644 --- a/src/tools/bookmark_ignore.h +++ b/src/tools/bookmark_ignore.h @@ -38,7 +38,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);