Skip to content

Commit

Permalink
Fix outdated types in tests
Browse files Browse the repository at this point in the history
Fix #1992
  • Loading branch information
jubalh committed Aug 5, 2024
1 parent beeddda commit 3441aa3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/unittests/config/stub_accounts.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tests/unittests/tools/stub_http_upload.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 2 additions & 1 deletion tests/unittests/xmpp/stub_avatar.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
#include <stdlib.h>

void avatar_pep_subscribe(void){};

gboolean
avatar_get_by_nick(const char* nick)
avatar_get_by_nick(const char* nick, gboolean open)
{
return TRUE;
}
Expand Down

0 comments on commit 3441aa3

Please sign in to comment.