- unified the 2 script context commands

- minor changes in hipadaba and ascon/devser
This commit is contained in:
zolliker
2008-05-30 09:29:44 +00:00
parent b03ddddd8f
commit b5b4da2776
9 changed files with 179 additions and 138 deletions

10
ascon.c
View File

@ -75,9 +75,9 @@ static void AsconError(Ascon *a, char *msg, int errorno) {
state = stateText[a->state];
}
if (errorno != 0) {
ErrPutMsg(&a->errList, NULL, "%s %s (during %s)", msg, strerror(errorno), state);
ErrPutMsg(a->errList, "%s %s (during %s)", msg, strerror(errorno), state);
} else {
ErrPutMsg(&a->errList, NULL, "%s (during %s)", msg, state);
ErrPutMsg(a->errList, "%s (during %s)", msg, state);
}
a->state |= AsconFailed;
}
@ -400,7 +400,7 @@ Ascon *AsconMake(SConnection *con, int argc, char *argv[]) {
}
a->rdBuffer = CreateDynString(60, 63);
a->wrBuffer = CreateDynString(60, 63);
a->errList.head = NULL;
a->errList = NULL;
a->responseValid = 0;
a->timeout = 2.0;
a->reconnectInterval = 10;
@ -500,6 +500,6 @@ char *AsconRead(Ascon *a) {
return NULL;
}
ErrMsgList *AsconGetErrList(Ascon *a) {
return &a->errList;
ErrMsg *AsconGetErrList(Ascon *a) {
return a->errList;
}