diff options
| author | Anton <anton@picapica.im> | 2026-11-25 10:50:00 +0400 |
|---|---|---|
| committer | Anton <anton@picapica.im> | 2026-11-25 10:50:00 +0400 |
| commit | 0f5ba1062894ad2cd19f79b4f8434ffbb78b9e32 (patch) | |
| tree | 9a1da1a0f49dc9d9fc9545cc451d2e49a8f126a5 /tests | |
| parent | 4b1372eae2dba25f92de84a497983961d1d46b70 (diff) | |
| download | pica-pica-0f5ba1062894ad2cd19f79b4f8434ffbb78b9e32.tar.gz pica-pica-0f5ba1062894ad2cd19f79b4f8434ffbb78b9e32.zip | |
use English everywhere in the comments
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_client.c | 10 | ||||
| -rw-r--r-- | tests/test_client_tree.c | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_client.c b/tests/test_client.c index 320e0bb..88a2913 100644 --- a/tests/test_client.c +++ b/tests/test_client.c @@ -54,7 +54,7 @@ int accept_cb(const unsigned char *id) return 1; } -//получение сообщения. +//message received. void newmsg_cb(const unsigned char *peer_id, const char* msgbuf, unsigned int nb, int type) { @@ -87,13 +87,13 @@ void newmsg_cb(const unsigned char *peer_id, const char* msgbuf, unsigned int nb printf(" %s: ", PICA_id_to_base64(peer_id, NULL)); puts(buf); } -//получение подтверждения о доставке сообщения +//message delivery confirmation received void msgok_cb(const unsigned char *peer_id) { delivery_acks_count++; puts("[V]"); } -//создание канала с собеседником +//channel with the peer created void c2c_established_cb(const unsigned char *peer_id, const char *ciphersuitename) { c2c_active = 1; @@ -109,9 +109,9 @@ void c2c_failed_cb(const unsigned char *peer_id) chn = 0; } -//входящий запрос на создание канала от пользователя с номером caller_id +//incoming channel request from the user with id caller_id //<<int accept_cb(unsigned int caller_id); -//запрошенный пользователь не найден, в оффлайне или отказался от общения +//requested user not found, offline, or refused to talk void notfound_cb(const unsigned char *callee_id) { puts("notfound_cb"); diff --git a/tests/test_client_tree.c b/tests/test_client_tree.c index 81076f8..e343234 100644 --- a/tests/test_client_tree.c +++ b/tests/test_client_tree.c @@ -120,7 +120,7 @@ void client_tree_print(struct client *c) void client_tree_remove(struct client* ci) { - struct client** p_link;//указывает на left или right в родительском узле + struct client** p_link;//points to left or right in the parent node if (!ci->up) { @@ -159,7 +159,7 @@ void client_tree_remove(struct client* ci) { struct client *lm; lm = ci->right; - while(lm->left) lm = lm->left; //поиск самого левого узла правого поддерева + while(lm->left) lm = lm->left; //find the leftmost node of the right subtree if (lm != ci->right) { |
