Made astriumnet and poldifold work
Astriumnet had problems: - The hash code stuff is number size dependent - wrPos was not properly reset, thus leading to no new request being written. Poldifold was tested and taken into operation
This commit is contained in:
@ -36,7 +36,6 @@ static int PoldiFold (pSConnection pCon, pSicsInterp pInter, void
|
||||
argv[1], argv[2]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
pPtr = argv[3];
|
||||
for(i = 0; i < 4; i++){
|
||||
pPtr = stptok(pPtr,num,sizeof(num),",");
|
||||
@ -44,6 +43,7 @@ static int PoldiFold (pSConnection pCon, pSicsInterp pInter, void
|
||||
SCWrite(pCon,"ERROR: not enough values in the offset list",eError);
|
||||
return 0;
|
||||
}
|
||||
offset[i] = atoi(num);
|
||||
}
|
||||
pPtr = stptok(pPtr,num,sizeof(num),",");
|
||||
if(pPtr == NULL){
|
||||
@ -52,7 +52,7 @@ static int PoldiFold (pSConnection pCon, pSicsInterp pInter, void
|
||||
}
|
||||
nTof = atoi(num);
|
||||
|
||||
dim = FindHdbNode(NULL,"../dim",pCon);
|
||||
dim = GetHipadabaNode(source->mama,"dim");
|
||||
if(dim == NULL){
|
||||
SCPrintf(pCon,eError,"ERROR: failed to find dimensions beneath %s, no HM?",
|
||||
argv[1]);
|
||||
@ -86,6 +86,7 @@ static int PoldiFold (pSConnection pCon, pSicsInterp pInter, void
|
||||
}
|
||||
}
|
||||
}
|
||||
NotifyHipadabaPar(target,pCon);
|
||||
SCSendOK(pCon);
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user