From 857ad5a31b0d061368d34f6a484a570bffc9aef7 Mon Sep 17 00:00:00 2001 From: Dmitry Chagin Date: Thu, 1 Jan 2015 20:53:38 +0000 Subject: [PATCH] Fix Clang -Wpointer-sign warnings. MFC after: 1 week --- sys/compat/linux/linux_socket.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c index 61b786fef9fb..f43378795244 100644 --- a/sys/compat/linux/linux_socket.c +++ b/sys/compat/linux/linux_socket.c @@ -573,7 +573,8 @@ linux_sendit(struct thread *td, int s, struct msghdr *mp, int flags, static int linux_check_hdrincl(struct thread *td, int s) { - int error, optval, size_val; + int error, optval; + socklen_t size_val; size_val = sizeof(optval); error = kern_getsockopt(td, s, IPPROTO_IP, IP_HDRINCL, @@ -932,7 +933,7 @@ linux_getpeername(struct thread *td, struct linux_getpeername_args *args) bsd_args.fdes = args->s; bsd_args.asa = (struct sockaddr *)PTRIN(args->addr); - bsd_args.alen = (int *)PTRIN(args->namelen); + bsd_args.alen = (socklen_t *)PTRIN(args->namelen); error = sys_getpeername(td, &bsd_args); bsd_to_linux_sockaddr((struct sockaddr *)bsd_args.asa); if (error)