Commit d5d5f939 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

ztype2ltype(): declare function static

parent 6c6efd51
......@@ -118,7 +118,6 @@ char *commandLine(void);
int readline(FILE *fp, char *line, int len);
int zaxis2ltype(int zaxisID);
int ztype2ltype(int zaxistype);
int nfc2nlat(int nfc, int ntr);
......
......@@ -432,22 +432,7 @@ void defineZaxis(const char *zaxisarg)
}
}
int zaxis2ltype(int zaxisID)
{
int ltype;
int zaxistype;
zaxistype = zaxisInqType(zaxisID);
ltype = zaxisInqLtype(zaxisID);
if ( ltype <= 0 ) ltype = ztype2ltype(zaxistype);
return (ltype);
}
static
int ztype2ltype(int zaxistype)
{
int ltype = -1;
......@@ -465,3 +450,18 @@ int ztype2ltype(int zaxistype)
return (ltype);
}
int zaxis2ltype(int zaxisID)
{
int ltype;
int zaxistype;
zaxistype = zaxisInqType(zaxisID);
ltype = zaxisInqLtype(zaxisID);
if ( ltype <= 0 ) ltype = ztype2ltype(zaxistype);
return (ltype);
}
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