IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8429


Ignore:
Timestamp:
Aug 20, 2006, 5:37:51 PM (20 years ago)
Author:
eugene
Message:

minor bugs

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

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libdvo/include/dvo.h

    r8386 r8429  
    269269/** dvo_catalog APIs */
    270270void dvo_catalog_init (Catalog *catalog, int complete);
    271 void dvo_catalog_create (SkyRegion *region, Catalog *catalog, int Nsecfilt);
     271void dvo_catalog_create (SkyRegion *region, Catalog *catalog);
    272272void dvo_catalog_free (Catalog *catalog);
    273273int dvo_catalog_check (Catalog *catalog, int Nsecfilt, int extend);
  • trunk/Ohana/src/libdvo/src/dvo_catalog.c

    r8394 r8429  
    162162// returns TRUE if the catalog was empty
    163163// XXX allow stdout as destination (don't lock)
    164 enum {DVO_OPEN_NONE, DVO_OPEN_READ, DVO_OPEN_WRITE, DVO_OPEN_UPDATE);
     164enum {DVO_OPEN_NONE, DVO_OPEN_READ, DVO_OPEN_WRITE, DVO_OPEN_UPDATE};
    165165int dvo_catalog_open (Catalog *catalog, SkyRegion *region, int VERBOSE, char *iomode) {
    166166
     
    359359    free (catalog[0].average);
    360360    catalog[0].Naverage = 0;
     361    catalog[0].average = NULL;
    361362  }
    362363  if (catalog[0].measure != NULL) {
    363364    free (catalog[0].measure);
    364365    catalog[0].Nmeasure = 0;
     366    catalog[0].measure = NULL;
    365367  }
    366368  if (catalog[0].missing != NULL) {
    367369    free (catalog[0].missing);
    368370    catalog[0].Nmissing = 0;
     371    catalog[0].missing = NULL;
    369372  }
    370373  if (catalog[0].secfilt != NULL) {
    371374    free (catalog[0].secfilt);
    372375    catalog[0].Nsecfilt = 0;
     376    catalog[0].secfilt = NULL;
    373377  }
    374378  gfits_free_header (&catalog[0].header);
  • trunk/Ohana/src/libdvo/src/dvo_catalog_create.c

    r8394 r8429  
    136136  gfits_modify (&catalog[0].header, "RA1",  "%lf", 1, Rmax);
    137137  gfits_modify (&catalog[0].header, "DEC1", "%lf", 1, Dmax);
    138 
     138  return (TRUE);
    139139}
Note: See TracChangeset for help on using the changeset viewer.