diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-08-31 14:36:08 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-08-31 14:55:25 +0200 |
commit | e2930d8777c0331b5882e27cbb53f3cf8516a62d (patch) | |
tree | 6c8691e22823b8fee89479066e8e48052143ebdd | |
parent | 3c8b9879cab6d41787bc5b14c1748f62fd6d0e5f (diff) | |
download | glibc-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.c | 2 |
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) |