From 3441aa327972f4cc16d34ae25eef8b77524c2054 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Mon, 5 Aug 2024 12:11:44 +0200 Subject: [PATCH] Fix outdated types in tests Fix https://github.com/profanity-im/profanity/issues/1992 --- tests/unittests/config/stub_accounts.c | 4 ++-- tests/unittests/tools/stub_http_upload.c | 2 +- tests/unittests/xmpp/stub_avatar.c | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/unittests/config/stub_accounts.c b/tests/unittests/config/stub_accounts.c index 3451c0c3..a3fcacc7 100644 --- a/tests/unittests/config/stub_accounts.c +++ b/tests/unittests/config/stub_accounts.c @@ -22,7 +22,7 @@ accounts_find_all(const char* const prefix, gboolean previous, void* context) } char* -accounts_find_enabled(char* prefix, void* context) +accounts_find_enabled(const char* const prefix, gboolean previous, void* context) { return NULL; } @@ -37,7 +37,7 @@ accounts_reset_enabled_search(void) } void -accounts_add(const char* jid, const char* altdomain, const int port) +accounts_add(const char* jid, const char* altdomain, const int port, const char* const tls_policy, const char* const auth_policy) { check_expected(jid); check_expected(altdomain); diff --git a/tests/unittests/tools/stub_http_upload.c b/tests/unittests/tools/stub_http_upload.c index 1b79e02d..49320f85 100644 --- a/tests/unittests/tools/stub_http_upload.c +++ b/tests/unittests/tools/stub_http_upload.c @@ -33,7 +33,7 @@ file_mime_type(const char* const file_name) } off_t -file_size(const char* const file_name) +file_size(int filedes) { return 0; } diff --git a/tests/unittests/xmpp/stub_avatar.c b/tests/unittests/xmpp/stub_avatar.c index 768a3aab..8390077e 100644 --- a/tests/unittests/xmpp/stub_avatar.c +++ b/tests/unittests/xmpp/stub_avatar.c @@ -3,8 +3,9 @@ #include void avatar_pep_subscribe(void){}; + gboolean -avatar_get_by_nick(const char* nick) +avatar_get_by_nick(const char* nick, gboolean open) { return TRUE; }