From 01819b0b02fdde48e96b83f7d570f8adb59cb86d Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Fri, 30 Nov 2012 16:48:58 -0600 Subject: [PATCH] Use new helper. --- src/std/dev/devLsiSoft.c | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/std/dev/devLsiSoft.c b/src/std/dev/devLsiSoft.c index 10dceb359..a5547cba8 100644 --- a/src/std/dev/devLsiSoft.c +++ b/src/std/dev/devLsiSoft.c @@ -2,7 +2,7 @@ * Copyright (c) 2012 UChicago Argonne LLC, as Operator of Argonne * National Laboratory. * EPICS BASE is distributed subject to a Software License Agreement found -* in file LICENSE that is included with this distribution. +* in file LICENSE that is included with this distribution. \*************************************************************************/ /* Long String Input soft device support @@ -11,34 +11,16 @@ * Date: 2012-11-28 */ -#include -#include -#include - -#include "alarm.h" -#include "dbDefs.h" #include "dbAccess.h" #include "epicsTime.h" -#include "recGbl.h" -#include "devSup.h" #include "link.h" #include "lsiRecord.h" #include "epicsExport.h" static long init_record(lsiRecord *prec) { - /* Handle CONSTANT links */ - if (prec->inp.type == CONSTANT) { - char tmp[MAX_STRING_SIZE]; + dbLoadLinkLS(&prec->inp, prec->val, prec->sizv, &prec->len); - if (recGblInitConstantLink(&prec->inp, DBF_STRING, tmp)) { - long len = prec->sizv; - - strncpy(prec->val, tmp, len); - prec->len = strlen(prec->val) + 1; - prec->udf = FALSE; - } - } return 0; }