From ad5760f61a801e8258a2c84cfcd900a18c67fd35 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Fri, 6 Jun 2008 14:29:37 +0000 Subject: [PATCH] Remove duplicate null DSXT layer. --- src/dbStatic/devSup.h | 3 ++- src/dev/softDev/devTimestamp.c | 10 +--------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/dbStatic/devSup.h b/src/dbStatic/devSup.h index 508b0a224..00739c8a8 100644 --- a/src/dbStatic/devSup.h +++ b/src/dbStatic/devSup.h @@ -54,8 +54,9 @@ typedef struct dsxt { /* device support extension table */ #define S_dev_noDeviceFound (M_devSup|23) /*No device found at specified address*/ -/* This routine is defined in src/misc/iocInit.c */ +/* These are defined in src/misc/iocInit.c */ +extern struct dsxt devSoft_DSXT; extern void devExtend(dsxt *pdsxt); diff --git a/src/dev/softDev/devTimestamp.c b/src/dev/softDev/devTimestamp.c index 72b27e1a0..b5814e2c1 100644 --- a/src/dev/softDev/devTimestamp.c +++ b/src/dev/softDev/devTimestamp.c @@ -25,16 +25,8 @@ /* Extended device support to allow INP field changes */ -static long allow(struct dbCommon *prec) { - return 0; -} - -static struct dsxt dsxtAllow = { - allow, allow -}; - static long initAllow(int pass) { - if (pass == 0) devExtend(&dsxtAllow); + if (pass == 0) devExtend(&devSoft_DSXT); return 0; }