smbd: Adapt brl_pending_overlap to README.Coding
[metze/samba/wip.git] / source3 / locking / brlock.c
index 31e0f857d5c319b843c4fc84dfebda7912eaaf27..5a4bd0d5c06381c818ff4e5aad48f45dae791c66 100644 (file)
@@ -295,13 +295,18 @@ static bool brl_conflict_other(const struct lock_struct *lock,
  Check if an unlock overlaps a pending lock.
 ****************************************************************************/
 
-static bool brl_pending_overlap(const struct lock_struct *lock, const struct lock_struct *pend_lock)
+static bool brl_pending_overlap(const struct lock_struct *lock,
+                               const struct lock_struct *pend_lock)
 {
-       if ((lock->start <= pend_lock->start) && (lock->start + lock->size > pend_lock->start))
-               return True;
-       if ((lock->start >= pend_lock->start) && (lock->start < pend_lock->start + pend_lock->size))
-               return True;
-       return False;
+       if ((lock->start <= pend_lock->start) &&
+           (lock->start + lock->size > pend_lock->start)) {
+               return true;
+       }
+       if ((lock->start >= pend_lock->start) &&
+           (lock->start < pend_lock->start + pend_lock->size)) {
+               return true;
+       }
+       return false;
 }
 
 /****************************************************************************