Commit 32204535 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Add const declarations for resource list operation tables.

parent 9cbdcdda
......@@ -81,10 +81,13 @@ static int streamGetPackSize ( void * streamptr, void *context);
static void streamPack ( void * streamptr, void * buff, int size, int * position, void *context );
static int streamTxCode ( void );
resOps streamOps = { streamCompareP, streamDestroyP, streamPrintP,
streamGetPackSize,
streamPack,
streamTxCode
const resOps streamOps = {
streamCompareP,
streamDestroyP,
streamPrintP,
streamGetPackSize,
streamPack,
streamTxCode
};
long cdiGetenvInt(char *envName)
......
......@@ -372,7 +372,7 @@ void cdiStreamSync_(stream_t *streamptr);
char *cdiUnitNamePtr(int cdi_unit);
extern resOps streamOps;
extern const resOps streamOps;
#endif /* _CDI_INT_H */
/*
......
......@@ -56,8 +56,13 @@ static void gridPack ( void * gridptr, void * buff, int size,
int *position, void *context);
static int gridTxCode ( void );
static resOps gridOps = { gridCompareP, gridDestroyP, gridPrintP
, gridGetPackSize, gridPack, gridTxCode
static const resOps gridOps = {
gridCompareP,
gridDestroyP,
gridPrintP,
gridGetPackSize,
gridPack,
gridTxCode
};
......
......@@ -38,7 +38,7 @@ static int instituteGetSizeP ( void * instituteptr, void *context );
static void institutePackP ( void * instituteptr, void *buf, int size, int *position, void *context );
static int instituteTxCode ( void );
static resOps instituteOps = {
static const resOps instituteOps = {
instituteCompareP,
instituteDestroyP,
institutePrintP,
......
......@@ -42,7 +42,7 @@ static void modelPackP ( void * modelptr, void * buff, int size,
int *position, void *context);
static int modelTxCode ( void );
static resOps modelOps = {
static const resOps modelOps = {
modelCompareP,
modelDestroyP,
modelPrintP,
......
......@@ -46,8 +46,13 @@ static void taxisPack ( void * taxisptr, void *buf, int size,
int *position, void *context );
static int taxisTxCode ( void );
resOps taxisOps = { taxisCompareP, taxisDestroyP, taxisPrintP
, taxisGetPackSize, taxisPack, taxisTxCode
const resOps taxisOps = {
taxisCompareP,
taxisDestroyP,
taxisPrintP,
taxisGetPackSize,
taxisPack,
taxisTxCode
};
......
......@@ -40,7 +40,7 @@ void timeval2vtime(double timevalue, taxis_t* taxis, int* vdate, int* vtime)
double vtime2timeval(int vdate, int vtime, taxis_t *taxis);
#if !defined (SX)
extern resOps taxisOps;
extern const resOps taxisOps;
#endif
int
......
......@@ -68,7 +68,7 @@ static void vlistPackP ( void * vlistptr, void * buff, int size,
int *position, void *context);
static int vlistTxCode ( void );
resOps vlist_ops = {
const resOps vlist_ops = {
(valCompareFunc)vlist_compare,
(valDestroyFunc)vlist_delete,
(valPrintFunc)vlistPrintKernel
......
......@@ -15,7 +15,7 @@
#include "serialize.h"
#include "error.h"
extern resOps vlist_ops;
extern const resOps vlist_ops;
static
void vlistvarInitEntry(int vlistID, int varID)
......
......@@ -91,8 +91,13 @@ static int zaxisGetPackSize ( void * zaxisptr, void *context);
static void zaxisPack ( void * zaxisptr, void * buffer, int size, int *pos, void *context);
static int zaxisTxCode ( void );
static resOps zaxisOps = { zaxisCompareP, zaxisDestroyP, zaxisPrintP
, zaxisGetPackSize, zaxisPack, zaxisTxCode
static const resOps zaxisOps = {
zaxisCompareP,
zaxisDestroyP,
zaxisPrintP,
zaxisGetPackSize,
zaxisPack,
zaxisTxCode
};
static int ZAXIS_Debug = 0; /* If set to 1, debugging */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment