comparison src/filelock.c @ 25125:8282b2b596a2

(lock_if_free): Indentation fix.
author Karl Heuer <kwzh@gnu.org>
date Fri, 30 Jul 1999 14:30:03 +0000
parents a3b19ebb46f9
children 11333159bd0a
comparison
equal deleted inserted replaced
25124:5ae84fc3bc96 25125:8282b2b596a2
513 return 0; /* We ourselves locked it. */ 513 return 0; /* We ourselves locked it. */
514 } 514 }
515 else if (locker == 1) 515 else if (locker == 1)
516 return 1; /* Someone else has it. */ 516 return 1; /* Someone else has it. */
517 else if (locker == -1) 517 else if (locker == -1)
518 return -1; /* current_lock_owner() returned strange error */ 518 return -1; /* current_lock_owner() returned strange error */
519 519
520 /* We deleted a stale lock; try again to lock the file. */ 520 /* We deleted a stale lock; try again to lock the file. */
521 } 521 }
522 return 0; 522 return 0;
523 } 523 }