diff options
| author | James Booth <boothj5@gmail.com> | 2014-05-26 01:05:19 +0100 |
|---|---|---|
| committer | James Booth <boothj5@gmail.com> | 2014-05-26 01:05:19 +0100 |
| commit | 52f66fde105eb48f114d6c92ff71da78ec458466 (patch) | |
| tree | 12803993d0a38d5815b25778de88604756363389 /tests/xmpp | |
| parent | 60b59d984a4576c780d56e9427248657776fdb01 (diff) | |
| download | profani-tty-52f66fde105eb48f114d6c92ff71da78ec458466.tar.gz | |
Fixed tests to work with cmocka 0.4.1
Diffstat (limited to 'tests/xmpp')
| -rw-r--r-- | tests/xmpp/mock_xmpp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/xmpp/mock_xmpp.c b/tests/xmpp/mock_xmpp.c index 7faf7170..940356ca 100644 --- a/tests/xmpp/mock_xmpp.c +++ b/tests/xmpp/mock_xmpp.c @@ -17,7 +17,7 @@ _mock_jabber_get_connection_status(void) static char * _mock_jabber_get_account_name(void) { - return (char *)mock(); + return mock_ptr_type(char *); } static void @@ -47,7 +47,7 @@ _mock_jabber_connect_with_account(const ProfAccount * const account) static char * _mock_jabber_get_presence_message(void) { - return (char *)mock(); + return mock_ptr_type(char *); } static void @@ -61,7 +61,7 @@ _mock_presence_update(resource_presence_t status, const char * const msg, int id static const GList * _mock_bookmark_get_list(void) { - return (GList *)mock(); + return mock_ptr_type(GList *); } static gboolean |