Date: Thu, 8 Jan 2015 06:32:57 +0000 (UTC) From: Dmitry Chagin <dchagin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r276813 - stable/10/sys/compat/linux Message-ID: <201501080632.t086WvDf081450@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501080632.t086WvDf081450>