diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2004-12-15 15:35:02 +0000 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2004-12-15 15:35:02 +0000 |
| commit | 631f43ca2d2a4aa9be7c654c3537a60063754242 (patch) | |
| tree | 917111ff0b8c9852d2688dbfb512857626edade5 | |
| parent | 51c0e854fb7998905284eb74e44568f558fa4fc4 (diff) | |
| download | man-pages-631f43ca2d2a4aa9be7c654c3537a60063754242.tar.gz | |
Added 'const' to declaration of 'my_addr' in prototype.
as per http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=239762
| -rw-r--r-- | man2/bind.2 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/man2/bind.2 b/man2/bind.2 index 741fb5d711..4f5e38f4d6 100644 --- a/man2/bind.2 +++ b/man2/bind.2 @@ -71,7 +71,8 @@ bind \- bind a name to a socket .br .B #include <sys/socket.h> .sp -.BI "int bind(int " sockfd ", struct sockaddr *" my_addr ", socklen_t " addrlen ); +.BI "int bind(int " sockfd ", const struct sockaddr *" my_addr \ +", socklen_t " addrlen ); .SH DESCRIPTION .B bind gives the socket @@ -81,7 +82,8 @@ the local address .I my_addr is .I addrlen -bytes long. Traditionally, this is called \(lqassigning a name to a socket.\(rq +bytes long. +Traditionally, this is called \(lqassigning a name to a socket.\(rq When a socket is created with .BR socket (2), it exists in a name space (address family) but has no name assigned. |
