summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-09-07 12:05:29 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-09-07 12:05:29 +0400
commit695890ed1291a3901c9db3155b855b5676d6afc7 (patch)
treecc3717f521c72c17d86837b0728ee47bc15f253c /sysdeps/unix/sysv
parentcdf0f98517d595bc1d24b81f0f8fe62495ed18a4 (diff)
downloadglibc-695890ed1291a3901c9db3155b855b5676d6afc7.tar.gz
Cast to intptr_t to fix compiler warning
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r--sysdeps/unix/sysv/solaris2/kopensolaris-gnu/madvise.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/solaris2/kopensolaris-gnu/madvise.c b/sysdeps/unix/sysv/solaris2/kopensolaris-gnu/madvise.c
index 5688e110b2..53b2a03f1c 100644
--- a/sysdeps/unix/sysv/solaris2/kopensolaris-gnu/madvise.c
+++ b/sysdeps/unix/sysv/solaris2/kopensolaris-gnu/madvise.c
@@ -23,7 +23,7 @@
int
madvise (__ptr_t addr, size_t len, int advice)
{
- return memcntl (addr, len, MC_ADVISE, (caddr_t)advice, 0, 0);
+ return memcntl (addr, len, MC_ADVISE, (caddr_t)(intptr_t)advice, 0, 0);
}
libc_hidden_def (madvise)