Changeset 8427 for trunk/Ohana/src/opihi/dvo/gstar.c
- Timestamp:
- Aug 20, 2006, 5:36:41 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/dvo/gstar.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/dvo/gstar.c
r7960 r8427 72 72 /* lock, load, unlock catalog */ 73 73 catalog.filename = skylist[0].filename[0]; 74 switch (lock_catalog (&catalog, LCK_SOFT)) {75 case 2:76 unlock_catalog (&catalog);77 case 0:78 return (FALSE);79 }80 74 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF; 81 if (!load_catalog (&catalog, TRUE)) { 82 unlock_catalog (&catalog); 83 return (FALSE); 84 } 85 unlock_catalog (&catalog); 75 76 // an error exit status here is a significant error 77 if (!dvo_catalog_open (&catalog, NULL, FALSE, "r")) { 78 fprintf (stderr, "ERROR: failure to open catalog file %s\n", catalog.filename); 79 exit (2); 80 } 81 dvo_catalog_unlock (&catalog); 86 82 87 83 Nstars = catalog.Naverage; … … 209 205 free (DEC); 210 206 free (N1); 211 if (catalog.average != 0) free (catalog.average); 212 if (catalog.measure != 0) free (catalog.measure); 213 if (catalog.secfilt != 0) free (catalog.secfilt); 207 dvo_catalog_free (&catalog); 214 208 215 209 freePhotcodeSequence ();
Note:
See TracChangeset
for help on using the changeset viewer.
