diff options
Diffstat (limited to 'testing/toxic/prompt.c')
-rw-r--r-- | testing/toxic/prompt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testing/toxic/prompt.c b/testing/toxic/prompt.c index 81f00bce..e194a90e 100644 --- a/testing/toxic/prompt.c +++ b/testing/toxic/prompt.c | |||
@@ -204,7 +204,7 @@ void cmd_connect(ToxWindow *self, Messenger *m, char **args) | |||
204 | 204 | ||
205 | dht.ip.i = resolved_address; | 205 | dht.ip.i = resolved_address; |
206 | unsigned char *binary_string = hex_string_to_bin(key); | 206 | unsigned char *binary_string = hex_string_to_bin(key); |
207 | DHT_bootstrap(dht, binary_string); | 207 | DHT_bootstrap(m->dht, dht, binary_string); |
208 | free(binary_string); | 208 | free(binary_string); |
209 | } | 209 | } |
210 | 210 | ||
@@ -365,7 +365,9 @@ static void execute(ToxWindow *self, Messenger *m, char *u_cmd) | |||
365 | cmd[i] = '\0'; | 365 | cmd[i] = '\0'; |
366 | 366 | ||
367 | int j = i; | 367 | int j = i; |
368 | |||
368 | while (++j < MAX_STR_SIZE && isspace(cmd[j])); | 369 | while (++j < MAX_STR_SIZE && isspace(cmd[j])); |
370 | |||
369 | i = j - 1; | 371 | i = j - 1; |
370 | 372 | ||
371 | numargs++; | 373 | numargs++; |
@@ -460,7 +462,7 @@ static void prompt_onKey(ToxWindow *self, Messenger *m, int key) | |||
460 | } | 462 | } |
461 | } | 463 | } |
462 | 464 | ||
463 | static void prompt_onDraw(ToxWindow *self) | 465 | static void prompt_onDraw(ToxWindow *self, Messenger *m) |
464 | { | 466 | { |
465 | curs_set(1); | 467 | curs_set(1); |
466 | int x, y; | 468 | int x, y; |