summaryrefslogtreecommitdiff
path: root/testing/tox_shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tox_shell.c')
-rw-r--r--testing/tox_shell.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/tox_shell.c b/testing/tox_shell.c
index 77047a44..40890453 100644
--- a/testing/tox_shell.c
+++ b/testing/tox_shell.c
@@ -45,7 +45,7 @@
45 45
46#define c_sleep(x) usleep(1000*x) 46#define c_sleep(x) usleep(1000*x)
47 47
48void print_online(Tox *tox, uint32_t friendnumber, TOX_CONNECTION status, void *userdata) 48static void print_online(Tox *tox, uint32_t friendnumber, TOX_CONNECTION status, void *userdata)
49{ 49{
50 if (status) { 50 if (status) {
51 printf("\nOther went online.\n"); 51 printf("\nOther went online.\n");
@@ -54,8 +54,8 @@ void print_online(Tox *tox, uint32_t friendnumber, TOX_CONNECTION status, void *
54 } 54 }
55} 55}
56 56
57void print_message(Tox *tox, uint32_t friendnumber, TOX_MESSAGE_TYPE type, const uint8_t *string, size_t length, 57static void print_message(Tox *tox, uint32_t friendnumber, TOX_MESSAGE_TYPE type, const uint8_t *string, size_t length,
58 void *userdata) 58 void *userdata)
59{ 59{
60 int master = *((int *)userdata); 60 int master = *((int *)userdata);
61 write(master, string, length); 61 write(master, string, length);
@@ -129,7 +129,7 @@ int main(int argc, char *argv[])
129 } 129 }
130 130
131 uint8_t *bin_id = hex_string_to_bin(temp_id); 131 uint8_t *bin_id = hex_string_to_bin(temp_id);
132 uint32_t num = tox_friend_add(tox, bin_id, (uint8_t *)"Install Gentoo", sizeof("Install Gentoo"), 0); 132 uint32_t num = tox_friend_add(tox, bin_id, (const uint8_t *)"Install Gentoo", sizeof("Install Gentoo"), 0);
133 free(bin_id); 133 free(bin_id);
134 134
135 if (num == UINT32_MAX) { 135 if (num == UINT32_MAX) {