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