Skip to content

Commit

Permalink
Merge pull request #30 from jlmuir/fix-undefined-READONLY
Browse files Browse the repository at this point in the history
Replace READONLY with const
  • Loading branch information
keenanlang authored Dec 4, 2023
2 parents c19e4a2 + 4e3d564 commit 1409a89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions sscanApp/src/saveData.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down
5 changes: 2 additions & 3 deletions sscanApp/src/saveData_writeXDR.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@
#include <dbDefs.h> /* for PVNAME_STRINGSZ */
#include <epicsTypes.h> /* for MAX_STRING_SIZE */
#include <epicsStdio.h> /* for epicsSnprintf() */
#include <shareLib.h> /* for READONLY */

#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 1409a89

Please sign in to comment.