summaryrefslogtreecommitdiff
path: root/science/minc2/files/patch-netcdf
blob: 139ba5217a0c3d5f2608274053d82a2942f0308f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
--- progs/mincdump/mincdump.c.orig	2012-09-24 17:35:36 UTC
+++ progs/mincdump/mincdump.c
@@ -494,17 +494,17 @@ do_ncdump(char *path, struct fspec* specp)
 		/* get _FillValue attribute */
                 old_nc_opts = ncopts;
                 ncopts = 0;
-                nc_status = ncattinq(ncid,varid,_FillValue,&att.type,&att.len);
+                nc_status = ncattinq(ncid,varid,NC_FillValue,&att.type,&att.len);
                 ncopts = old_nc_opts;
 		if(nc_status == NC_NOERR &&
 		   att.type == var.type && att.len == 1) {
 		    if(var.type == NC_CHAR) {
 			char fillc;
-			ncattget(ncid, varid, _FillValue, &fillc );
+			ncattget(ncid, varid, NC_FillValue, &fillc );
 			var.fillval = fillc;
 		    } 
                     else {
-			ncattget(ncid, varid, _FillValue, &var.fillval);
+			ncattget(ncid, varid, NC_FillValue, &var.fillval);
 		    }
 		} else {
 		    switch (var.type) {
--- progs/mincgen/ncgentab.y.orig	2012-09-24 17:35:36 UTC
+++ progs/mincgen/ncgentab.y
@@ -288,14 +288,14 @@ attdecl:        att
 		       /* shrink space down to what was really needed */
 		       att_space = erealloc(att_space, valnum*nctypesize(valtype));
 		       atts[natts].val = att_space;
-		       if (STREQ(atts[natts].name, _FillValue) &&
+		       if (STREQ(atts[natts].name, NC_FillValue) &&
 			   atts[natts].var != NC_GLOBAL) {
 			   nc_putfill(atts[natts].type,
 				       atts[natts].val,
 				       &vars[atts[natts].var].fill_value);
 			   if(atts[natts].type != vars[atts[natts].var].type) {
 			       derror("variable %s: %s type mismatch",
-				      vars[atts[natts].var].name, _FillValue);
+				      vars[atts[natts].var].name, NC_FillValue);
 			   }
 		       }
 		       natts++;