svn commit: r276813 - stable/10/sys/compat/linux
Dmitry Chagin
dchagin at FreeBSD.org
Thu Jan 8 06:32:58 UTC 2015
Author: dchagin
Date: Thu Jan 8 06:32:56 2015
New Revision: 276813
URL: https://svnweb.freebsd.org/changeset/base/276813
Log:
MFC r276512:
Fix Clang -Wpointer-sign warnings.
Modified:
stable/10/sys/compat/linux/linux_socket.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/compat/linux/linux_socket.c
==============================================================================
--- stable/10/sys/compat/linux/linux_socket.c Thu Jan 8 06:29:52 2015 (r276812)
+++ stable/10/sys/compat/linux/linux_socket.c Thu Jan 8 06:32:56 2015 (r276813)
@@ -573,7 +573,8 @@ linux_sendit(struct thread *td, int s, s
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, str
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)
More information about the svn-src-stable
mailing list