IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 3, 2010, 8:35:01 AM (16 years ago)
Author:
eugene
Message:

some updates for pedantic, optimize (handle return values for some write, system, fscans)

Location:
trunk/Ohana/src/libdvo/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libdvo/src/dvo_catalog_mef.c

    r27435 r27588  
    248248  /* rewind file pointers and truncate */
    249249  fseeko (f, 0LL, SEEK_SET);
    250   ftruncate (fileno (catalog[0].f), 0);
     250  if (ftruncate (fileno (catalog[0].f), 0)) {
     251    if (VERBOSE) fprintf (stderr, "failed to truncate file\n");
     252    goto failure;
     253  }
    251254  ftable.header = &header;
    252255
  • trunk/Ohana/src/libdvo/src/dvo_catalog_raw.c

    r27580 r27588  
    285285  f = catalog[0].f;
    286286  fseeko (f, 0, SEEK_SET);
    287   ftruncate (fileno (catalog[0].f), 0);
     287  if (ftruncate (fileno (catalog[0].f), 0)) {
     288    if (VERBOSE) fprintf (stderr, "failed to truncate file\n");
     289    goto failure;
     290  }
    288291
    289292  /* write header data (use gfits_write_header?) */
Note: See TracChangeset for help on using the changeset viewer.