summaryrefslogtreecommitdiff
path: root/auto_tests/friends_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'auto_tests/friends_test.c')
-rwxr-xr-xauto_tests/friends_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/auto_tests/friends_test.c b/auto_tests/friends_test.c
index 4f777ab5..11c6bf29 100755
--- a/auto_tests/friends_test.c
+++ b/auto_tests/friends_test.c
@@ -65,7 +65,7 @@ void parent_confirm_message(int num, uint8_t *data, uint16_t length)
65 request_flags |= SECOND_FLAG; 65 request_flags |= SECOND_FLAG;
66} 66}
67 67
68void parent_confirm_status(int num, USERSTATUS_KIND status, uint8_t *data, uint16_t length) 68void parent_confirm_status(int num, uint8_t *data, uint16_t length)
69{ 69{
70 puts("OK"); 70 puts("OK");
71 request_flags |= FIRST_FLAG; 71 request_flags |= FIRST_FLAG;
@@ -110,7 +110,7 @@ void child_got_request(uint8_t *public_key, uint8_t *data, uint16_t length)
110 request_flags |= FIRST_FLAG; 110 request_flags |= FIRST_FLAG;
111} 111}
112 112
113void child_got_statuschange(int friend_num, USERSTATUS_KIND status, uint8_t *string, uint16_t length) 113void child_got_statuschange(int friend_num, uint8_t *string, uint16_t length)
114{ 114{
115 request_flags |= SECOND_FLAG; 115 request_flags |= SECOND_FLAG;
116} 116}
@@ -169,7 +169,7 @@ int main(int argc, char *argv[])
169 msync(child_id, crypto_box_PUBLICKEYBYTES, MS_SYNC); 169 msync(child_id, crypto_box_PUBLICKEYBYTES, MS_SYNC);
170 170
171 m_callback_friendrequest(child_got_request); 171 m_callback_friendrequest(child_got_request);
172 m_callback_userstatus(child_got_statuschange); 172 m_callback_statusmessage(child_got_statuschange);
173 173
174 /* wait on the friend request */ 174 /* wait on the friend request */
175 while(!(request_flags & FIRST_FLAG)) 175 while(!(request_flags & FIRST_FLAG))
@@ -196,7 +196,7 @@ int main(int argc, char *argv[])
196 } 196 }
197 197
198 msync(parent_id, crypto_box_PUBLICKEYBYTES, MS_SYNC); 198 msync(parent_id, crypto_box_PUBLICKEYBYTES, MS_SYNC);
199 m_callback_userstatus(parent_confirm_status); 199 m_callback_statusmessage(parent_confirm_status);
200 m_callback_friendmessage(parent_confirm_message); 200 m_callback_friendmessage(parent_confirm_message);
201 201
202 /* hacky way to give the child time to set up */ 202 /* hacky way to give the child time to set up */