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

Merge declaration and initialization in iegAddRecord.

parent 915457ed
......@@ -642,8 +642,6 @@ static
void iegAddRecord(stream_t *streamptr, int param, int *pdb, int *gdb, double *vct,
size_t recsize, off_t position, int prec)
{
int leveltype;
int gridID = UNDEFID;
int levelID = 0;
int vlistID = streamptr->vlistID;
int tsID = streamptr->curTsID;
......@@ -749,9 +747,9 @@ void iegAddRecord(stream_t *streamptr, int param, int *pdb, int *gdb, double *vc
grid.angle = 0;
}
gridID = varDefGrid(vlistID, &grid, 0);
int gridID = varDefGrid(vlistID, &grid, 0);
leveltype = iegGetZaxisType(IEG_P_LevelType(pdb));
int leveltype = iegGetZaxisType(IEG_P_LevelType(pdb));
if ( leveltype == ZAXIS_HYBRID )
{
......
Supports Markdown
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