Date: Sat, 9 Sep 2006 19:00:15 GMT From: Alexander Leidinger <netchild@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 105908 for review Message-ID: <200609091900.k89J0FVr090410@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=105908 Change 105908 by netchild@netchild_magellan on 2006/09/09 19:00:08 Style Affected files ... .. //depot/projects/linuxolator/src/sys/compat/linux/linux_socket.c#4 edit Differences ... ==== //depot/projects/linuxolator/src/sys/compat/linux/linux_socket.c#4 (text+ko) ==== @@ -1205,25 +1205,25 @@ } if (name == -1) { log(LOG_WARNING, "LINUX: 'getsockopt' level=0x%04x" - "optname=0x%04x not implemented\n", - linux_args.level, linux_args.optname); + "optname=0x%04x not implemented\n", + linux_args.level, linux_args.optname); return (EINVAL); }; bsd_args.name = name; if (bsd_args.level == SOL_SOCKET && name == LOCAL_PEERCRED) { if ((error = copyin(PTRIN(linux_args.optval), - &linux_ucred, sizeof(linux_ucred)))) + &linux_ucred, sizeof(linux_ucred)))) return (error); if ((error = copyin(PTRIN(linux_args.optlen), - &optlen, sizeof(optlen)))) + &optlen, sizeof(optlen)))) return (error); if (optlen < sizeof(linux_ucred)) return (EFAULT); xuclen = sizeof(xuc); if ((rc = error = kern_getsockopt(td, bsd_args.s, - 0, bsd_args.name, - (caddr_t) &xuc, UIO_SYSSPACE, &xuclen))) + 0, bsd_args.name, + (caddr_t) &xuc, UIO_SYSSPACE, &xuclen))) return (error); if (xuc.cr_version != XUCRED_VERSION) return (EINVAL); @@ -1232,7 +1232,7 @@ linux_ucred.uid = xuc.cr_uid; linux_ucred.gid = xuc.cr_gid; if ((error = copyout(&linux_ucred, - PTRIN(linux_args.optval), sizeof(linux_ucred)))) + PTRIN(linux_args.optval), sizeof(linux_ucred)))) return (error); return (rc); } else {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609091900.k89J0FVr090410>