smbd: Adapt brl_pending_overlap to README.Coding
authorVolker Lendecke <vl@samba.org>
Mon, 27 May 2019 14:21:12 +0000 (16:21 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 28 May 2019 22:22:28 +0000 (22:22 +0000)
Just reformatting, no behaviour change. This just looked too ugly to me.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue May 28 22:22:28 UTC 2019 on sn-devel-184

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;
 }
 
 /****************************************************************************