From 0c62fa18368d91f5d148be6f7462d83dbe865061 Mon Sep 17 00:00:00 2001 From: Uwe Schulzweida <uwe.schulzweida@mpimet.mpg.de> Date: Wed, 6 Mar 2024 14:05:43 +0100 Subject: [PATCH] cleanup --- src/cdf_write.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cdf_write.c b/src/cdf_write.c index 89f459aad..316ab844e 100644 --- a/src/cdf_write.c +++ b/src/cdf_write.c @@ -981,7 +981,7 @@ cdfDefVar(stream_t *streamptr, int varID) cdfGenVarname(fileID, name, pnum, pcat, &pdis, &code); int dtype = vlistInqVarDatatype(vlistID, varID); - const nc_type xtype = cdfDefDatatype(dtype, streamptr); + nc_type xtype = cdfDefDatatype(dtype, streamptr); if (streamptr->ncmode == 2) { @@ -1364,7 +1364,7 @@ cdfDefineStartAndCount(stream_t *streamptr, int varID, int xid, int yid, int zid int vlistID = streamptr->vlistID; int fileID = streamptr->fileID; - const long ntsteps = streamptr->ntsteps; + long ntsteps = streamptr->ntsteps; if (CDI_Debug) Message("ntsteps = %ld", ntsteps); int timetype = vlistInqVarTimetype(vlistID, varID); @@ -1457,7 +1457,7 @@ cdfDefineStartAndCountChunk(stream_t *streamptr, const int rect[][2], int varID, int vlistID = streamptr->vlistID; int fileID = streamptr->fileID; - const long ntsteps = streamptr->ntsteps; + long ntsteps = streamptr->ntsteps; if (CDI_Debug) Message("ntsteps = %ld", ntsteps); int timetype = vlistInqVarTimetype(vlistID, varID); @@ -1554,7 +1554,7 @@ cdfDefineStartAndCountSlice(stream_t *streamptr, int varID, int levelID, int dim int vlistID = streamptr->vlistID; int fileID = streamptr->fileID; - const long ntsteps = streamptr->ntsteps; + long ntsteps = streamptr->ntsteps; if (CDI_Debug) Message("ntsteps = %ld", ntsteps); int timetype = vlistInqVarTimetype(vlistID, varID); -- GitLab