- unified the 2 script context commands
- minor changes in hipadaba and ascon/devser
This commit is contained in:
10
ascon.c
10
ascon.c
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user