First commit towards replacing pCon-> with someFunc(pCon)
This is accompanied with the removal of dead code in conman.c and else
This commit is contained in:
@@ -835,7 +835,7 @@ int EVCDrive(pEVControl self, SConnection * pCon, float fVal)
|
||||
|
||||
/* start executing */
|
||||
iRet = StartDevice(GetExecutor(), self->pName, self->pDes,
|
||||
self, pCon, pCon->runLevel, fVal);
|
||||
self, pCon, SCGetRunLevel(pCon), fVal);
|
||||
if (!iRet) {
|
||||
snprintf(pBueffel,255, "ERROR: Failure to start %s", self->pName);
|
||||
SCWrite(pCon, pBueffel, eError);
|
||||
@@ -1022,7 +1022,7 @@ static int EVCallBack(int iEvent, void *pEventData, void *pUserData)
|
||||
}
|
||||
|
||||
if (iEvent == VALUECHANGE && pCon != NULL) {
|
||||
pCon->conEventType = POSITION;
|
||||
SCSetEventType(pCon,POSITION);
|
||||
SCWrite(pCon, pBuf, eEvent);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user