Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix outdated types in tests #1993

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading