Changeset 31256
- Timestamp:
- Apr 10, 2011, 10:16:41 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110404/Ohana/src/dvomerge/src/dvoverify.c
r31160 r31256 148 148 int VerifyTableFile (char *filename) { 149 149 150 int status ;150 int status, Next; 151 151 off_t Nbytes; 152 152 Header header; … … 205 205 // scan all extentions 206 206 Nbytes = 0; 207 Next = -1; 207 208 if (DEBUG) fprintf (stderr, "sizes: ("OFF_T_FMT" vs "OFF_T_FMT")\n", Nbytes, fileStats.st_size); 208 209 while (Nbytes < fileStats.st_size) { … … 210 211 // Check on the PHU 211 212 if (!gfits_fread_header (file, &header)) { 212 fprintf (stderr, "unable to read PHU header for %s\n", filename); 213 if (Next == -1) { 214 fprintf (stderr, "unable to read PHU header for %s\n", filename); 215 } else { 216 fprintf (stderr, "unable to read header for %s, extension %d (or file has excess bytes)\n", filename, Next); 217 } 213 218 fclose(file); 214 219 return (FALSE); … … 243 248 } 244 249 } 250 Next ++; 245 251 } 246 252 if (DEBUG) fprintf (stderr, "file is good: %s\n", filename);
Note:
See TracChangeset
for help on using the changeset viewer.
