Fixed tests to work with cmocka 0.4.1

This commit is contained in:
James Booth
2014-05-26 01:05:19 +01:00
parent 60b59d984a
commit 52f66fde10
6 changed files with 17 additions and 17 deletions

View File

@@ -24,20 +24,20 @@ _mock_otr_keygen(ProfAccount *account)
static char *
_mock_otr_libotr_version(void)
{
return (char *)mock();
return mock_ptr_type(char *);
}
static char *
_mock_otr_get_my_fingerprint(void)
{
return (char *)mock();
return mock_ptr_type(char *);
}
static char *
_mock_otr_get_their_fingerprint(const char * const recipient)
{
check_expected(recipient);
return (char *)mock();
return mock_ptr_type(char *);
}
static gboolean
@@ -49,7 +49,7 @@ _mock_otr_key_loaded(void)
static char *
_mock_otr_start_query(void)
{
return (char *)mock();
return mock_ptr_type(char *);
}
void