From 03c4cbbf3959789cd37df733efd72a5357998c96 Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Mon, 11 May 1992 14:49:13 +0000 Subject: [PATCH] Changed return of init_record to don't convert --- src/dev/devAoSoft.c | 8 +++++--- src/dev/devBoSoft.c | 8 +++++--- src/dev/devMbboSoft.c | 8 +++++--- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/dev/devAoSoft.c b/src/dev/devAoSoft.c index 51282797b..971e4861f 100644 --- a/src/dev/devAoSoft.c +++ b/src/dev/devAoSoft.c @@ -33,6 +33,7 @@ * .01 11-11-91 jba Moved set of alarm stat and sevr to macros * .02 02-05-92 jba Changed function arguments from paddr to precord * .03 03-13-92 jba ANSI C changes + * .04 04-01-92 jba Changed return of init_record to dont convert * ... */ @@ -79,12 +80,13 @@ static long init_record(pao) struct aoRecord *pao; { -long status; + long status=0; if (pao->out.type == PV_LINK) status = dbCaAddOutlink(&(pao->out), (void *) pao, "OVAL"); - else - status = 0L; + + /* dont convert */ + if ( status == 0 ) status = 2; return status; diff --git a/src/dev/devBoSoft.c b/src/dev/devBoSoft.c index 78eb7252d..4c57ea44e 100644 --- a/src/dev/devBoSoft.c +++ b/src/dev/devBoSoft.c @@ -32,6 +32,7 @@ * ----------------- * .01 11-11-91 jba Moved set of alarm stat and sevr to macros * .02 03-13-92 jba ANSI C changes + * .03 04-01-92 jba Changed return of init_record to dont convert * ... */ @@ -76,13 +77,14 @@ static long init_record(pbo) struct boRecord *pbo; { -long status; + long status=0; if (pbo->out.type == PV_LINK) status = dbCaAddOutlink(&(pbo->out), (void *) pbo, "VAL"); - else - status = 0L; + /* dont convert */ + if (status == 0 ) status=2; + return status; } /* end init_record() */ diff --git a/src/dev/devMbboSoft.c b/src/dev/devMbboSoft.c index c195604b2..f224d4530 100644 --- a/src/dev/devMbboSoft.c +++ b/src/dev/devMbboSoft.c @@ -32,6 +32,7 @@ * ----------------- * .01 11-11-91 jba Moved set of alarm stat and sevr to macros * .02 03-13-92 jba ANSI C changes + * .04 04-01-92 jba Changed return of init_record to dont convert * ... */ @@ -78,13 +79,14 @@ static long init_record(pmbbo) struct mbboRecord *pmbbo; { -long status; + long status=0; if (pmbbo->out.type == PV_LINK) status = dbCaAddOutlink(&(pmbbo->out), (void *) pmbbo, "VAL"); - else - status = 0L; + /* dont convert */ + if ( status == 0 ) status=2; + return status; } /* end init_record() */