diff mbox series

[hurd,commited] mach lll_lock/unlock: Explicitly request private locking

Message ID 20210914233730.3320591-1-samuel.thibault@ens-lyon.org
State New
Headers show
Series [hurd,commited] mach lll_lock/unlock: Explicitly request private locking | expand

Commit Message

Samuel Thibault Sept. 14, 2021, 11:37 p.m. UTC
0 was actually LLL_PRIVATE, so this does not actually change the code.
---
 sysdeps/mach/libc-lock.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/sysdeps/mach/libc-lock.h b/sysdeps/mach/libc-lock.h
index 220fcee921..07a2bbc8f0 100644
--- a/sysdeps/mach/libc-lock.h
+++ b/sysdeps/mach/libc-lock.h
@@ -71,14 +71,14 @@  typedef struct __libc_lock_recursive_opaque__ __libc_lock_recursive_t;
 
 /* Lock the named lock variable.  */
 #define __libc_lock_lock(NAME)   \
-  ({ lll_lock ((NAME), 0); 0; })
+  ({ lll_lock ((NAME), LLL_PRIVATE); 0; })
 
 /* Lock the named lock variable.  */
 #define __libc_lock_trylock(NAME) lll_trylock (NAME)
 
 /* Unlock the named lock variable.  */
 #define __libc_lock_unlock(NAME)   \
-  ({ lll_unlock ((NAME), 0); 0; })
+  ({ lll_unlock ((NAME), LLL_PRIVATE); 0; })
 
 #define __libc_lock_define_recursive(CLASS,NAME) \
   CLASS __libc_lock_recursive_t NAME;