hurd: Fix typo in msync

== has higher priority than &
This commit is contained in:
Samuel Thibault 2021-08-31 14:36:08 +02:00
parent 3c8b9879ca
commit e2930d8777

View File

@ -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)