From: Fredrik Tolf Date: Wed, 6 Feb 2008 03:00:20 +0000 (+0100) Subject: Make the test client quit when it has authenticated. X-Git-Tag: 1.1~22 X-Git-Url: http://dolda2000.com/gitweb/?p=doldaconnect.git;a=commitdiff_plain;h=cb972e81d547d47624fe7242a8aa840b24cfec40 Make the test client quit when it has authenticated. --- diff --git a/clients/test.c b/clients/test.c index 04f471c..cf4bc4c 100644 --- a/clients/test.c +++ b/clients/test.c @@ -5,15 +5,18 @@ #include #include +int done; + void authcallback(int err, wchar_t *reason, void *data) { printf("Logged in: %i\n", err); + dc_queuecmd(NULL, NULL, L"quit", NULL); } int main(int argc, char **argv) { struct pollfd pfd; - int fd, done; + int fd; struct dc_response *resp; dc_init();