X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=clients%2Ftest.c;h=04f471c0935b0d35174ff04ea6729c03b2367f33;hb=refs%2Fheads%2Fjava;hp=382e26e332d26c3db6b5ccc3442d67b77777da14;hpb=1157d12b29dfa327967c46fa3a0ae859adaf470b;p=doldaconnect.git diff --git a/clients/test.c b/clients/test.c index 382e26e..04f471c 100644 --- a/clients/test.c +++ b/clients/test.c @@ -12,11 +12,9 @@ void authcallback(int err, wchar_t *reason, void *data) int main(int argc, char **argv) { - int i; struct pollfd pfd; int fd, done; struct dc_response *resp; - struct dc_intresp *ires; dc_init(); fd = dc_connect(NULL); @@ -41,7 +39,7 @@ int main(int argc, char **argv) if(!wcscmp(resp->cmdname, L".connect")) { printf("Connected: %i\n", resp->code); - if(resp->code == 200) + if(resp->code == 201) dc_loginasync(NULL, 1, NULL, authcallback, NULL); } dc_freeresp(resp);