Browse Source

in posix_fadvise, don't bypass __syscall macro infrastructure

when commit 0b6eb2dfb2e84a8a51906e7634f3d5edc230b058 added the
parentheses around __syscall to invoke the function directly, there
was no __syscall7 in the syscall macro infrastructure, so this hack
was needed. commit 9a3bbce447403d735282586786dc436ec1ffbad4 fixed that
but failed to remove the hack.
Rich Felker 8 years ago
parent
commit
804debee2b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/fcntl/posix_fadvise.c

+ 1 - 1
src/fcntl/posix_fadvise.c

@@ -4,7 +4,7 @@
 
 int posix_fadvise(int fd, off_t base, off_t len, int advice)
 {
-	return -(__syscall)(SYS_fadvise, fd, __SYSCALL_LL_O(base),
+	return -__syscall(SYS_fadvise, fd, __SYSCALL_LL_O(base),
 		__SYSCALL_LL_E(len), advice);
 }