summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/DHT_test.c2
-rw-r--r--testing/nTox.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/testing/DHT_test.c b/testing/DHT_test.c
index 2636ed02..5cdd1823 100644
--- a/testing/DHT_test.c
+++ b/testing/DHT_test.c
@@ -208,7 +208,7 @@ int main(int argc, char *argv[])
208 temp_id[strlen(temp_id) - 1] = '\0'; 208 temp_id[strlen(temp_id) - 1] = '\0';
209 209
210 uint8_t *bin_id = hex_string_to_bin(temp_id); 210 uint8_t *bin_id = hex_string_to_bin(temp_id);
211 DHT_addfriend(dht, bin_id); 211 DHT_addfriend(dht, bin_id, 0, 0, 0, 0);
212 free(bin_id); 212 free(bin_id);
213 213
214 perror("Initialization"); 214 perror("Initialization");
diff --git a/testing/nTox.c b/testing/nTox.c
index edda43b1..b33b1fd3 100644
--- a/testing/nTox.c
+++ b/testing/nTox.c
@@ -1001,11 +1001,11 @@ void print_help(char *prog_name)
1001 puts(" -f keyfile [Optional] Specify a keyfile to read from and write to."); 1001 puts(" -f keyfile [Optional] Specify a keyfile to read from and write to.");
1002} 1002}
1003 1003
1004void print_invite(Tox *m, int friendnumber, const uint8_t *group_public_key, void *userdata) 1004void print_invite(Tox *m, int friendnumber, const uint8_t *data, uint16_t length, void *userdata)
1005{ 1005{
1006 char msg[256]; 1006 char msg[256];
1007 sprintf(msg, "[i] received group chat invite from: %u, auto accepting and joining. group number: %u", friendnumber, 1007 sprintf(msg, "[i] received group chat invite from: %u, auto accepting and joining. group number: %u", friendnumber,
1008 tox_join_groupchat(m, friendnumber, group_public_key)); 1008 tox_join_groupchat(m, friendnumber, data, length));
1009 new_lines(msg); 1009 new_lines(msg);
1010} 1010}
1011 1011