Merge branch 'develop' of ssh://gitorious.psi.ch/sinqdev/sics into develop
This commit is contained in:
6
ascon.c
6
ascon.c
@ -84,6 +84,8 @@ void AsconError(Ascon *a, char *msg, int errorno)
|
||||
DynStringConcat(a->errmsg, " (");
|
||||
DynStringConcat(a->errmsg, state);
|
||||
DynStringConcat(a->errmsg, " state)");
|
||||
DynStringConcat(a->errmsg, " on ");
|
||||
DynStringConcat(a->errmsg, a->hostport);
|
||||
} else {
|
||||
DynStringConcat(a->errmsg, strerror(errorno));
|
||||
DynStringConcat(a->errmsg, " (");
|
||||
@ -91,6 +93,8 @@ void AsconError(Ascon *a, char *msg, int errorno)
|
||||
DynStringConcat(a->errmsg, " state, ");
|
||||
DynStringConcat(a->errmsg, msg);
|
||||
DynStringConcat(a->errmsg, ")");
|
||||
DynStringConcat(a->errmsg, " on ");
|
||||
DynStringConcat(a->errmsg, a->hostport);
|
||||
}
|
||||
a->state = AsconFailed;
|
||||
}
|
||||
@ -818,7 +822,7 @@ char *AsconRead(Ascon * a)
|
||||
{
|
||||
if (a->noResponse) {
|
||||
a->noResponse = 0;
|
||||
return "";
|
||||
return NULL;
|
||||
}
|
||||
if (a->state != AsconIdle) {
|
||||
a->state = AsconIdle;
|
||||
|
Reference in New Issue
Block a user