about summary refs log tree commit diff stats
path: root/tests/otr
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-05-26 01:05:19 +0100
committerJames Booth <boothj5@gmail.com>2014-05-26 01:05:19 +0100
commit52f66fde105eb48f114d6c92ff71da78ec458466 (patch)
tree12803993d0a38d5815b25778de88604756363389 /tests/otr
parent60b59d984a4576c780d56e9427248657776fdb01 (diff)
downloadprofani-tty-52f66fde105eb48f114d6c92ff71da78ec458466.tar.gz
Fixed tests to work with cmocka 0.4.1
Diffstat (limited to 'tests/otr')
-rw-r--r--tests/otr/mock_otr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/otr/mock_otr.c b/tests/otr/mock_otr.c
index e73d0ba2..25409197 100644
--- a/tests/otr/mock_otr.c
+++ b/tests/otr/mock_otr.c
@@ -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
27 -0700 2177' href='/akkartik/mu/commit/update_html?h=main&id=f5465e1220d73e237c51897b7d1211ec53b0dc04'>f5465e12 ^
4bbd3ded ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28