about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2021-08-31 14:36:08 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-08-31 14:55:25 +0200
commite2930d8777c0331b5882e27cbb53f3cf8516a62d (patch)
tree6c8691e22823b8fee89479066e8e48052143ebdd
parent3c8b9879cab6d41787bc5b14c1748f62fd6d0e5f (diff)
downloadglibc-e2930d8777c0331b5882e27cbb53f3cf8516a62d.tar.gz
glibc-e2930d8777c0331b5882e27cbb53f3cf8516a62d.tar.xz
glibc-e2930d8777c0331b5882e27cbb53f3cf8516a62d.zip
hurd: Fix typo in msync
== has higher priority than &
-rw-r--r--sysdeps/mach/hurd/msync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/msync.c b/sysdeps/mach/hurd/msync.c
index 4311dd56d1..a1244e42e2 100644
--- a/sysdeps/mach/hurd/msync.c
+++ b/sysdeps/mach/hurd/msync.c
@@ -47,7 +47,7 @@ msync (void *addr, size_t length, int flags)
   kern_return_t err;
   int cancel_oldtype;
 
-  if (flags & (MS_SYNC | MS_ASYNC) == (MS_SYNC | MS_ASYNC))
+  if ((flags & (MS_SYNC | MS_ASYNC)) == (MS_SYNC | MS_ASYNC))
     return __hurd_fail (EINVAL);
 
   while (cur < target)