diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/nTox.c | 2 | ||||
-rw-r--r-- | testing/tox_shell.c | 2 | ||||
-rw-r--r-- | testing/tox_sync.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/testing/nTox.c b/testing/nTox.c index 9e114ba5..a6ee9dde 100644 --- a/testing/nTox.c +++ b/testing/nTox.c | |||
@@ -1313,7 +1313,7 @@ int main(int argc, char *argv[]) | |||
1313 | 1313 | ||
1314 | while (1) { | 1314 | while (1) { |
1315 | if (on == 0) { | 1315 | if (on == 0) { |
1316 | if (tox_get_connection_status(m)) { | 1316 | if (tox_self_get_connection_status(m)) { |
1317 | new_lines("[i] connected to DHT"); | 1317 | new_lines("[i] connected to DHT"); |
1318 | on = 1; | 1318 | on = 1; |
1319 | } else { | 1319 | } else { |
diff --git a/testing/tox_shell.c b/testing/tox_shell.c index 38fe6364..37865b1c 100644 --- a/testing/tox_shell.c +++ b/testing/tox_shell.c | |||
@@ -136,7 +136,7 @@ int main(int argc, char *argv[]) | |||
136 | uint8_t notconnected = 1; | 136 | uint8_t notconnected = 1; |
137 | 137 | ||
138 | while (1) { | 138 | while (1) { |
139 | if (tox_get_connection_status(tox) && notconnected) { | 139 | if (tox_self_get_connection_status(tox) && notconnected) { |
140 | printf("\nDHT connected.\n"); | 140 | printf("\nDHT connected.\n"); |
141 | notconnected = 0; | 141 | notconnected = 0; |
142 | } | 142 | } |
diff --git a/testing/tox_sync.c b/testing/tox_sync.c index 8c693793..d60b091e 100644 --- a/testing/tox_sync.c +++ b/testing/tox_sync.c | |||
@@ -276,7 +276,7 @@ int main(int argc, char *argv[]) | |||
276 | uint8_t notconnected = 1; | 276 | uint8_t notconnected = 1; |
277 | 277 | ||
278 | while (1) { | 278 | while (1) { |
279 | if (tox_get_connection_status(tox) && notconnected) { | 279 | if (tox_self_get_connection_status(tox) && notconnected) { |
280 | printf("\nDHT connected.\n"); | 280 | printf("\nDHT connected.\n"); |
281 | notconnected = 0; | 281 | notconnected = 0; |
282 | } | 282 | } |