IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

updated to the new DVO APIs; minor cleanups (unused variables, etc)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/catalog.c

    r7917 r8427  
    316316      /* lock, load, unlock catalog */
    317317      catalog.filename = filename;
    318       switch (lock_catalog (&catalog, LCK_SOFT)) {
    319       case 2:
    320         unlock_catalog (&catalog);
    321       case 0:
    322         continue;
    323       }
    324318      catalog.catflags = LOAD_AVES;
    325       if (!load_catalog (&catalog, TRUE)) {
    326         unlock_catalog (&catalog);
    327         continue;
    328       }
    329       unlock_catalog (&catalog);
     319
     320      // an error exit status here is a significant error
     321      if (!dvo_catalog_open (&catalog, NULL, FALSE, "r")) {
     322          fprintf (stderr, "ERROR: failure to open catalog file %s\n", catalog.filename);
     323          exit (2);
     324      }
     325      dvo_catalog_unlock (&catalog);
    330326    }
    331327   
Note: See TracChangeset for help on using the changeset viewer.