summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coregrind/m_libcfile.c2
-rw-r--r--coregrind/pub_core_libcfile.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/coregrind/m_libcfile.c b/coregrind/m_libcfile.c
index 50be7c00..9cddfc00 100644
--- a/coregrind/m_libcfile.c
+++ b/coregrind/m_libcfile.c
@@ -299,7 +299,7 @@ SysRes VG_(dup2) ( Int oldfd, Int newfd )
}
/* Returns -1 on error. */
-Int VG_(fcntl) ( Int fd, Int cmd, Int arg )
+Int VG_(fcntl) ( Int fd, Int cmd, Addr arg )
{
SysRes res = VG_(do_syscall3)(__NR_fcntl, fd, cmd, arg);
return sr_isError(res) ? -1 : sr_Res(res);
diff --git a/coregrind/pub_core_libcfile.h b/coregrind/pub_core_libcfile.h
index dbd4ca86..548f1b4d 100644
--- a/coregrind/pub_core_libcfile.h
+++ b/coregrind/pub_core_libcfile.h
@@ -41,7 +41,7 @@
/* Move an fd into the Valgrind-safe range */
extern Int VG_(safe_fd) ( Int oldfd );
-extern Int VG_(fcntl) ( Int fd, Int cmd, Int arg );
+extern Int VG_(fcntl) ( Int fd, Int cmd, Addr arg );
/* Convert an fd into a filename */
extern Bool VG_(resolve_filename) ( Int fd, HChar* buf, Int n_buf );