Update against changes about 2 years ago. :)
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Wed, 11 Apr 2007 11:12:18 +0000 (11:12 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Wed, 11 Apr 2007 11:12:18 +0000 (11:12 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@892 959494ce-11ee-0310-bf91-de5d638817bd

clients/test.c

index e88dab4..46bd2f7 100644 (file)
@@ -38,10 +38,10 @@ int main(int argc, char **argv)
            done = 1;
        while((resp = dc_getresp()) != NULL)
        {
-           if(resp->cmdname == NULL)
+           if(!strcmp(resp->cmdname, ".connect"))
            {
                printf("Connected\n");
-               dc_loginasync(NULL, 0, NULL, authcallback, NULL);
+               dc_loginasync(NULL, 1, NULL, authcallback, NULL);
            }
            dc_freeresp(resp);
        }