diff options
Diffstat (limited to 'testing/toxic/main.c')
-rw-r--r-- | testing/toxic/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/toxic/main.c b/testing/toxic/main.c index 892f812a..19a0b959 100644 --- a/testing/toxic/main.c +++ b/testing/toxic/main.c | |||
@@ -68,10 +68,10 @@ void on_nickchange(int friendnumber, uint8_t* string, uint16_t length) { | |||
68 | } | 68 | } |
69 | } | 69 | } |
70 | 70 | ||
71 | void on_statuschange(int friendnumber, uint8_t* string, uint16_t length) { | 71 | void on_statuschange(int friendnumber, USERSTATUS_KIND kind, uint8_t* string, uint16_t length) { |
72 | size_t i; | 72 | size_t i; |
73 | 73 | ||
74 | wprintw(prompt->window, "\n(statuschange) %d: %s!\n", friendnumber, string); | 74 | wprintw(prompt->window, "\n(statuschange) %d: %s\n", friendnumber, string); |
75 | 75 | ||
76 | for(i=0; i<MAX_WINDOW_SLOTS; i++) { | 76 | for(i=0; i<MAX_WINDOW_SLOTS; i++) { |
77 | if(windows[i].onStatusChange != NULL) | 77 | if(windows[i].onStatusChange != NULL) |
@@ -216,7 +216,7 @@ static void load_data(char *path) { | |||
216 | 216 | ||
217 | Messenger_load(buf, len); | 217 | Messenger_load(buf, len); |
218 | } | 218 | } |
219 | else { | 219 | else { |
220 | len = Messenger_size(); | 220 | len = Messenger_size(); |
221 | buf = malloc(len); | 221 | buf = malloc(len); |
222 | 222 | ||
@@ -337,7 +337,7 @@ int main(int argc, char* argv[]) { | |||
337 | 337 | ||
338 | for(i = 0; i < argc; i++) { | 338 | for(i = 0; i < argc; i++) { |
339 | if (argv[i] == NULL){ | 339 | if (argv[i] == NULL){ |
340 | break; | 340 | break; |
341 | } else if(argv[i][0] == '-') { | 341 | } else if(argv[i][0] == '-') { |
342 | if(argv[i][1] == 'f') { | 342 | if(argv[i][1] == 'f') { |
343 | if(argv[i + 1] != NULL) | 343 | if(argv[i + 1] != NULL) |