svn commit: r249649 - head/sys/kern

Sergey Kandaurov pluknet at freebsd.org
Fri Apr 19 14:04:02 UTC 2013


On 19 April 2013 17:40, Gleb Smirnoff <glebius at freebsd.org> wrote:
> Author: glebius
> Date: Fri Apr 19 13:40:13 2013
> New Revision: 249649
> URL: http://svnweb.freebsd.org/changeset/base/249649
>
> Log:
>   Don't compare unsigned socklen_t against < 0.
>
>   Reviewed by:  jhb
>

Thank you. This is long overdue since socklen_t.
You may also want to update man page.

Index: lib/libc/sys/accept.2
===================================================================
--- lib/libc/sys/accept.2       (revision 245745)
+++ lib/libc/sys/accept.2       (working copy)
@@ -28,7 +28,7 @@
 .\"     @(#)accept.2   8.2 (Berkeley) 12/11/93
 .\" $FreeBSD$
 .\"
-.Dd December 11, 1993
+.Dd February 20, 2013
 .Dt ACCEPT 2
 .Os
 .Sh NAME
@@ -154,10 +154,6 @@ The descriptor references a file, not a socket.
 .It Bq Er EINVAL
 .Xr listen 2
 has not been called on the socket descriptor.
-.It Bq Er EINVAL
-The
-.Fa addrlen
-argument is negative.
 .It Bq Er EFAULT
 The
 .Fa addr

-- 
wbr,
pluknet


More information about the svn-src-all mailing list