Changed return of init_record to don't convert

This commit is contained in:
Janet B. Anderson
1992-05-11 14:49:13 +00:00
parent 697967dbe4
commit 03c4cbbf39
3 changed files with 15 additions and 9 deletions

View File

@@ -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;

View File

@@ -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() */

View File

@@ -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() */