about summary refs log tree commit diff stats
path: root/tests/otr/mock_otr.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/otr/mock_otr.c')
-rw-r--r--tests/otr/mock_otr.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/otr/mock_otr.c b/tests/otr/mock_otr.c
index 8750feb7..b8b43d9b 100644
--- a/tests/otr/mock_otr.c
+++ b/tests/otr/mock_otr.c
@@ -22,12 +22,6 @@ _mock_otr_libotr_version(void)
 }
 
 void
-mock_otr_keygen(void)
-{
-    otr_keygen = _mock_otr_keygen;
-}
-
-void
 mock_otr_libotr_version(void)
 {
     otr_libotr_version = _mock_otr_libotr_version;
@@ -36,6 +30,7 @@ mock_otr_libotr_version(void)
 void
 otr_keygen_expect(ProfAccount *account)
 {
+    otr_keygen = _mock_otr_keygen;
     expect_memory(_mock_otr_keygen, account, account, sizeof(ProfAccount));
 }