- Yet another fix for eclipse commit problems

This commit is contained in:
koennecke
2007-01-30 04:49:26 +00:00
parent e4929d512c
commit b335751bde
2 changed files with 54 additions and 2 deletions

View File

@@ -24,7 +24,7 @@
#include <lld.h>
#include <stptok.h>
#include "protocol.h"
#include "splitter.h"
#include <splitter.h>
/*== there can be only hipadaba in SICS, some globals to care for that == */
static pHdb root = NULL;
@@ -363,7 +363,7 @@ static int SICSScriptReadCallback(void *userData, void *callData, pHdb node,
* something = anything
* as well as a plain value alone
*/
data = Tcl_GetStringResult(InterpGetTcl(pServ->pSics));
data = (char *)Tcl_GetStringResult(InterpGetTcl(pServ->pSics));
if(data == NULL){
SCWrite(pCon,"ERROR: no result returned from script",eError);
return 0;
@@ -632,6 +632,7 @@ pHdbCallback MakeIntFixedCallback(int *data, int length){
pHdb MakeSICSHdbPar(char *name, int priv, hdbValue v){
pHdb result = NULL;
pHdbCallback pHcb = NULL;
char pPriv[20];
result = MakeHipadabaNode(name,v.dataType,v.arrayLength);
if(result == NULL){
@@ -652,6 +653,21 @@ pHdb MakeSICSHdbPar(char *name, int priv, hdbValue v){
return NULL;
}
AppendHipadabaCallback(result,HCBSET,pHcb);
switch(priv){
case 0:
strcpy(pPriv,"internal");
break;
case 1:
strcpy(pPriv,"manager");
break;
case 2:
strcpy(pPriv,"user");
break;
case 3:
strcpy(pPriv,"spy");
break;
}
SetHdbProperty(result,"priv",pPriv);
return result;
}