remove vardefs; use variable definition instead
This commit is contained in:
@@ -113,11 +113,6 @@ static void ascarCallFunc(const iocshArgBuf *args)
|
||||
ascar(args[0].ival);
|
||||
}
|
||||
|
||||
static struct iocshVarDef vardefs[] = {
|
||||
{"asCaDebug", iocshArgInt,(void * const )pasCaDebug},
|
||||
{0,iocshArgInt,0}
|
||||
};
|
||||
|
||||
void epicsShareAPI asTestRegister(void)
|
||||
{
|
||||
iocshRegister(&asSetFilenameFuncDef,asSetFilenameCallFunc);
|
||||
@@ -130,5 +125,4 @@ void epicsShareAPI asTestRegister(void)
|
||||
iocshRegister(&aspmemFuncDef,aspmemCallFunc);
|
||||
iocshRegister(&astacFuncDef,astacCallFunc);
|
||||
iocshRegister(&ascarFuncDef,ascarCallFunc);
|
||||
iocshRegisterVariable(vardefs);
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ typedef union iocshArgBuf {
|
||||
typedef struct iocshVarDef {
|
||||
const char *name;
|
||||
iocshArgType type;
|
||||
void * const pval;
|
||||
void * pval;
|
||||
}iocshVarDef;
|
||||
|
||||
typedef struct iocshArg {
|
||||
|
||||
Reference in New Issue
Block a user