diff options
author | Sebastian Stal <stal@pyboard.net> | 2013-08-05 12:30:40 -0700 |
---|---|---|
committer | Sebastian Stal <stal@pyboard.net> | 2013-08-05 12:30:40 -0700 |
commit | 5ec3b2330e1b6a9d4cda0eef74aca2408bec5250 (patch) | |
tree | 26a636e1b207e1653256210a2c60409011f51af5 /testing/toxic/main.c | |
parent | b7f989266df854fcd7772bec58e408c7359087ff (diff) |
Make test clients compatible with userstatus kinds
No features were added, just fixed callbacks.
Diffstat (limited to 'testing/toxic/main.c')
-rw-r--r-- | testing/toxic/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/toxic/main.c b/testing/toxic/main.c index 45760b1c..b322f95c 100644 --- a/testing/toxic/main.c +++ b/testing/toxic/main.c | |||
@@ -69,7 +69,7 @@ void on_nickchange(int friendnumber, uint8_t* string, uint16_t length) { | |||
69 | } | 69 | } |
70 | } | 70 | } |
71 | 71 | ||
72 | void on_statuschange(int friendnumber, uint8_t* string, uint16_t length) { | 72 | void on_statuschange(int friendnumber, USERSTATUS_KIND kind, uint8_t* string, uint16_t length) { |
73 | size_t i; | 73 | size_t i; |
74 | 74 | ||
75 | wprintw(prompt->window, "\n(statuschange) %d: %s!\n", friendnumber, string); | 75 | wprintw(prompt->window, "\n(statuschange) %d: %s!\n", friendnumber, string); |
@@ -201,7 +201,7 @@ static void load_data(char *path) { | |||
201 | 201 | ||
202 | Messenger_load(buf, len); | 202 | Messenger_load(buf, len); |
203 | } | 203 | } |
204 | else { | 204 | else { |
205 | len = Messenger_size(); | 205 | len = Messenger_size(); |
206 | buf = malloc(len); | 206 | buf = malloc(len); |
207 | 207 | ||
@@ -289,7 +289,7 @@ int main(int argc, char* argv[]) { | |||
289 | 289 | ||
290 | for(i = 0; i < argc; i++) { | 290 | for(i = 0; i < argc; i++) { |
291 | if (argv[i] == NULL){ | 291 | if (argv[i] == NULL){ |
292 | break; | 292 | break; |
293 | } else if(argv[i][0] == '-') { | 293 | } else if(argv[i][0] == '-') { |
294 | if(argv[i][1] == 'f') { | 294 | if(argv[i][1] == 'f') { |
295 | if(argv[i + 1] != NULL) | 295 | if(argv[i + 1] != NULL) |