]> Pileus Git - ~andy/rsl/blobdiff - src/radar_to_uf.c
Change RSL variables from static to extern
[~andy/rsl] / src / radar_to_uf.c
index f5a18abf3821d494808486cfbf8c3ce89cca5021..fae49a2a0445dbe8fc8e0f083d83927a3fdb85ee 100644 (file)
@@ -25,7 +25,6 @@
 #include <time.h>
 #include <stdlib.h>
 
-#define USE_RSL_VARS
 #include "rsl.h"
 extern int radar_verbose_flag;
 /* Missing data flag : -32768 when a signed short. */
@@ -186,7 +185,7 @@ void RSL_radar_to_uf_fp(Radar *r, FILE *fp)
     fprintf(stderr,"Maximum #   of volumes for UF is %d\n", nvolumes);
   }
 
-  max_field_names = sizeof(RSL_ftype) / 4;
+  max_field_names = MAX_RADAR_VOLUMES;
 
 /*--------
  *   LOOP for all sweeps (typically 11 or 16 for wsr88d data.