- Timestamp:
- Jan 13, 2016, 4:35:37 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libdvo/src/dvo_catalog_split.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libdvo/src/dvo_catalog_split.c
r39308 r39312 109 109 } 110 110 off_t fullsize = catalog->header.datasize; 111 112 if (fflush (catalog->f)) { 113 perror ("fflush: "); 114 fprintf (stderr, "failed to flush file %s\n", catalog->filename); 115 return FALSE; 116 } 111 117 112 118 # if (1) … … 168 174 return (FALSE); 169 175 } 176 if (fflush (catalog->f)) { 177 perror ("fflush: "); 178 fprintf (stderr, "failed to flush file %s\n", catalog->filename); 179 return FALSE; 180 } 170 181 if (!gfits_fwrite_table (catalog->f, outtable)) { 171 182 fprintf (stderr, "can't write table data\n"); … … 211 222 gfits_free_header (&cmpheader); 212 223 gfits_free_table (&cmptable); 224 225 if (fflush (catalog->f)) { 226 perror ("fflush: "); 227 fprintf (stderr, "failed to flush file %s\n", catalog->filename); 228 return FALSE; 229 } 213 230 214 231 // if the output file will be completely re-written, truncate to total datasize … … 275 292 /* read PHU */ 276 293 if (!gfits_load_header (subcat[0].f, &subcat[0].header)) { 277 if (VERBOSE) fprintf (stderr, "error reading %s header: %s\n", name, subcat[0].filename);294 if (VERBOSE) fprintf (stderr, "error reading PHU %s header: %s\n", name, subcat[0].filename); 278 295 return (DVO_CAT_OPEN_FAIL); 279 296 } … … 283 300 /* read table header */ 284 301 if (!gfits_fread_header (subcat[0].f, header)) { 285 if (VERBOSE) fprintf (stderr, "can't read %s PHUheader\n", name);302 if (VERBOSE) fprintf (stderr, "can't read %s table header\n", name); 286 303 gfits_free_header (&subcat[0].header); 287 304 return (DVO_CAT_OPEN_FAIL);
Note:
See TracChangeset
for help on using the changeset viewer.
