IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 3, 2005, 9:11:15 PM (22 years ago)
Author:
eugene
Message:

cleaning up fsetlockfile / fclearlockfile (dropped setlockfile2/clearlockfile2)

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

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/gimages.c

    r3645 r3649  
    1717 
    1818  /* if image.db is opened successfully, f will not be NULL.
    19      if image.db is empty, dbstate will be LCK_EMPTY */
     19     if image.db is empty, dbstate will be LCK_EMPTY
     20     if image.db is not locked & opened successfully, we will not reach here!
     21  */
    2022  f = GetDB (&dbstate);
    2123  if (dbstate == LCK_EMPTY) {
  • trunk/Ohana/src/addstar/src/image-db.c

    r3376 r3649  
    3636  check_permissions (ImageCat);
    3737  f = fsetlockfile (ImageCat, 3600.0, LOCK, &dbstate);
    38   if ((f == (FILE *) NULL) && (dbstate != LCK_EMPTY)) {
     38  if (f == NULL) {
    3939    fprintf (stderr, "ERROR: can't lock image catalog\n");
    4040    exit (1);
Note: See TracChangeset for help on using the changeset viewer.