From: Samuel Thibault Date: Tue, 31 Aug 2021 12:36:08 +0000 (+0200) Subject: hurd: Fix typo in msync X-Git-Tag: glibc-2.35~549 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e2930d8777c0331b5882e27cbb53f3cf8516a62d;p=thirdparty%2Fglibc.git hurd: Fix typo in msync == has higher priority than & --- diff --git a/sysdeps/mach/hurd/msync.c b/sysdeps/mach/hurd/msync.c index 4311dd56d17..a1244e42e2b 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)