made code proper to avoid warning/fixed some small potential bugs

This commit is contained in:
zolliker
2005-03-04 12:53:07 +00:00
parent 52e8c78aa9
commit 9a94b6dca7
29 changed files with 71 additions and 46 deletions

View File

@ -377,7 +377,7 @@
}
else if(iRet == DEVINT)
{
sprintf(pBueffel,"Driving Interrupted!",argv[0]);
sprintf(pBueffel,"Driving Interrupted!");
SCWrite(pCon,pBueffel,eError);
ClearExecutor(GetExecutor());
SetStatus(eOld);
@ -456,14 +456,14 @@
iRet = AddCommand(pSics,"drive", DriveWrapper,NULL,NULL);
if(!iRet)
{
sprintf(pBueffel,"ERROR: duplicate command drive not created",argv[2]);
sprintf(pBueffel,"ERROR: duplicate command drive not created");
SCWrite(pCon,pBueffel,eError);
return 0;
}
iRet = AddCommand(pSics,"run", RunWrapper,NULL,NULL);
if(!iRet)
{
sprintf(pBueffel,"ERROR: duplicate command run not created",argv[2]);
sprintf(pBueffel,"ERROR: duplicate command run not created");
SCWrite(pCon,pBueffel,eError);
return 0;
}