diff --git a/sscanApp/src/saveData.c b/sscanApp/src/saveData.c index 12a6845..66526b7 100644 --- a/sscanApp/src/saveData.c +++ b/sscanApp/src/saveData.c @@ -1844,7 +1844,7 @@ LOCAL void extraValCallback(struct event_handler_args eha) PV_NODE * pnode = eha.usr; long type = eha.type; long count = eha.count; - READONLY DBR_VAL * pval = eha.dbr; + const DBR_VAL * pval = eha.dbr; char *string; size_t size=0; @@ -1891,7 +1891,7 @@ LOCAL void extraValCallback(struct event_handler_args eha) LOCAL void extraDescCallback(struct event_handler_args eha) { PV_NODE * pnode = eha.usr; - READONLY DBR_VAL * pval = eha.dbr; + const DBR_VAL * pval = eha.dbr; epicsMutexLock(pnode->lock); diff --git a/sscanApp/src/saveData_writeXDR.c b/sscanApp/src/saveData_writeXDR.c index 965144d..d83c90d 100644 --- a/sscanApp/src/saveData_writeXDR.c +++ b/sscanApp/src/saveData_writeXDR.c @@ -208,7 +208,6 @@ #include /* for PVNAME_STRINGSZ */ #include /* for MAX_STRING_SIZE */ #include /* for epicsSnprintf() */ -#include /* for READONLY */ #define MAX(a,b) ((a)>(b)?(a):(b)) #define MIN(a,b) ((a)<(b)?(a):(b)) @@ -1850,7 +1849,7 @@ LOCAL void extraValCallback(struct event_handler_args eha) PV_NODE * pnode = eha.usr; long type = eha.type; long count = eha.count; - READONLY DBR_VAL * pval = eha.dbr; + const DBR_VAL * pval = eha.dbr; char *string; size_t size=0; @@ -1897,7 +1896,7 @@ LOCAL void extraValCallback(struct event_handler_args eha) LOCAL void extraDescCallback(struct event_handler_args eha) { PV_NODE * pnode = eha.usr; - READONLY DBR_VAL * pval = eha.dbr; + const DBR_VAL * pval = eha.dbr; epicsMutexLock(pnode->lock);