diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/nTox.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/nTox.c b/testing/nTox.c index b4a65448..0145c6ee 100644 --- a/testing/nTox.c +++ b/testing/nTox.c | |||
@@ -864,7 +864,7 @@ void do_refresh() | |||
864 | refresh(); | 864 | refresh(); |
865 | } | 865 | } |
866 | 866 | ||
867 | void print_request(Tox *m, uint8_t *public_key, uint8_t *data, uint16_t length, void *userdata) | 867 | void print_request(Tox *m, const uint8_t *public_key, const uint8_t *data, uint16_t length, void *userdata) |
868 | { | 868 | { |
869 | new_lines("[i] received friend request with message:"); | 869 | new_lines("[i] received friend request with message:"); |
870 | new_lines((char *)data); | 870 | new_lines((char *)data); |
@@ -1181,6 +1181,7 @@ char timeout_getch(Tox *m) | |||
1181 | 1181 | ||
1182 | c = ERR; | 1182 | c = ERR; |
1183 | int n = select(1, &fds, NULL, NULL, &tv); | 1183 | int n = select(1, &fds, NULL, NULL, &tv); |
1184 | |||
1184 | if (n < 0) { | 1185 | if (n < 0) { |
1185 | new_lines("select error: maybe interupted"); | 1186 | new_lines("select error: maybe interupted"); |
1186 | } else if (n == 0) { | 1187 | } else if (n == 0) { |