Fix int64inRecord::get_units()

This commit is contained in:
Andrew Johnson
2019-01-08 14:42:43 -06:00
parent a8fdf2efeb
commit 0ae50485cf
+6 -7
View File
@@ -183,17 +183,16 @@ static long special(DBADDR *paddr, int after)
#define indexof(field) int64inRecord##field
static long get_units(DBADDR *paddr,char *units)
static long get_units(DBADDR *paddr, char *units)
{
int64inRecord *prec=(int64inRecord *)paddr->precord;
int64inRecord *prec = (int64inRecord *) paddr->precord;
if(paddr->pfldDes->field_type == DBF_LONG) {
strncpy(units,prec->egu,DB_UNITS_SIZE);
if (paddr->pfldDes->field_type == DBF_INT64) {
strncpy(units, prec->egu, DB_UNITS_SIZE);
}
return(0);
return 0;
}
static long get_graphic_double(DBADDR *paddr, struct dbr_grDouble *pgd)
{
int64inRecord *prec=(int64inRecord *)paddr->precord;
@@ -255,7 +254,7 @@ static long get_alarm_double(DBADDR *paddr, struct dbr_alDouble *pad)
static void checkAlarms(int64inRecord *prec, epicsTimeStamp *timeLast)
{
enum {
enum {
range_Lolo = 1,
range_Low,
range_Normal,