Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update against changes about 2 years ago. :)
[doldaconnect.git]
/
clients
/
test.c
diff --git
a/clients/test.c
b/clients/test.c
index
e88dab4
..
46bd2f7
100644
(file)
--- a/
clients/test.c
+++ b/
clients/test.c
@@
-38,10
+38,10
@@
int main(int argc, char **argv)
done = 1;
while((resp = dc_getresp()) != NULL)
{
done = 1;
while((resp = dc_getresp()) != NULL)
{
- if(
resp->cmdname == NULL
)
+ if(
!strcmp(resp->cmdname, ".connect")
)
{
printf("Connected\n");
{
printf("Connected\n");
- dc_loginasync(NULL,
0
, NULL, authcallback, NULL);
+ dc_loginasync(NULL,
1
, NULL, authcallback, NULL);
}
dc_freeresp(resp);
}
}
dc_freeresp(resp);
}