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:
@ -256,7 +256,7 @@ int StartDevice(pExeList self, char *name, pObjectDescriptor pDes,
|
||||
|
||||
/* may we? */
|
||||
if (self->pOwner != NULL) {
|
||||
if (pCon->ident != self->pOwner->ident) {
|
||||
if (SCGetIdent(pCon) != SCGetIdent(self->pOwner)) {
|
||||
/* this hack helps on rita2, when using the sendsics script
|
||||
which opens a client for every command */
|
||||
if (overwriteOwner < 0) {
|
||||
@ -329,7 +329,7 @@ int StartDevice(pExeList self, char *name, pObjectDescriptor pDes,
|
||||
DevExecSignal,
|
||||
NULL, self,TASK_PRIO_HIGH);
|
||||
}
|
||||
pCon->conStatus = HWBusy;
|
||||
SCSetConStatus(pCon,HWBusy);
|
||||
return 1;
|
||||
} else {
|
||||
snprintf(pBueffel,131, "ERROR: cannot start device %s", name);
|
||||
|
Reference in New Issue
Block a user