diff options
Diffstat (limited to 'testing/Messenger_test.c')
-rw-r--r-- | testing/Messenger_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/Messenger_test.c b/testing/Messenger_test.c index 3b7715a2..9f56c903 100644 --- a/testing/Messenger_test.c +++ b/testing/Messenger_test.c | |||
@@ -67,7 +67,7 @@ static void print_message(Messenger *m, uint32_t friendnumber, unsigned int type | |||
67 | * networking_requesthandler and so cannot take a Messenger * */ | 67 | * networking_requesthandler and so cannot take a Messenger * */ |
68 | static Messenger *m; | 68 | static Messenger *m; |
69 | 69 | ||
70 | static void print_request(Messenger *m, const uint8_t *public_key, const uint8_t *data, size_t length, void *userdata) | 70 | static void print_request(Messenger *m2, const uint8_t *public_key, const uint8_t *data, size_t length, void *userdata) |
71 | { | 71 | { |
72 | printf("Friend request received from: \n"); | 72 | printf("Friend request received from: \n"); |
73 | printf("ClientID: "); | 73 | printf("ClientID: "); |
@@ -91,7 +91,7 @@ static void print_request(Messenger *m, const uint8_t *public_key, const uint8_t | |||
91 | //if the request contained the message of peace the person is obviously a friend so we add him. | 91 | //if the request contained the message of peace the person is obviously a friend so we add him. |
92 | { | 92 | { |
93 | printf("Friend request accepted.\n"); | 93 | printf("Friend request accepted.\n"); |
94 | m_addfriend_norequest(m, public_key); | 94 | m_addfriend_norequest(m2, public_key); |
95 | } | 95 | } |
96 | } | 96 | } |
97 | 97 | ||