diff options
Diffstat (limited to 'testing/toxic/prompt.c')
-rw-r--r-- | testing/toxic/prompt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/toxic/prompt.c b/testing/toxic/prompt.c index b1d6693f..c01ed710 100644 --- a/testing/toxic/prompt.c +++ b/testing/toxic/prompt.c | |||
@@ -15,7 +15,7 @@ | |||
15 | uint8_t pending_requests[MAX_STR_SIZE][CLIENT_ID_SIZE]; // XXX | 15 | uint8_t pending_requests[MAX_STR_SIZE][CLIENT_ID_SIZE]; // XXX |
16 | uint8_t num_requests=0; // XXX | 16 | uint8_t num_requests=0; // XXX |
17 | 17 | ||
18 | extern void on_friendadded(int friendnumber); | 18 | extern void on_friendadded(Messenger *m, int friendnumber); |
19 | static char prompt_buf[MAX_STR_SIZE] = {0}; | 19 | static char prompt_buf[MAX_STR_SIZE] = {0}; |
20 | static int prompt_buf_pos = 0; | 20 | static int prompt_buf_pos = 0; |
21 | 21 | ||
@@ -87,7 +87,7 @@ void cmd_accept(ToxWindow *self, Messenger *m, char **args) | |||
87 | wprintw(self->window, "Failed to add friend.\n"); | 87 | wprintw(self->window, "Failed to add friend.\n"); |
88 | else { | 88 | else { |
89 | wprintw(self->window, "Friend accepted as: %d.\n", num); | 89 | wprintw(self->window, "Friend accepted as: %d.\n", num); |
90 | on_friendadded(num); | 90 | on_friendadded(m, num); |
91 | } | 91 | } |
92 | } | 92 | } |
93 | 93 | ||
@@ -146,7 +146,7 @@ void cmd_add(ToxWindow *self, Messenger *m, char **args) | |||
146 | break; | 146 | break; |
147 | default: | 147 | default: |
148 | wprintw(self->window, "Friend added as %d.\n", num); | 148 | wprintw(self->window, "Friend added as %d.\n", num); |
149 | on_friendadded(num); | 149 | on_friendadded(m, num); |
150 | break; | 150 | break; |
151 | } | 151 | } |
152 | } | 152 | } |