aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2004-12-15 15:35:02 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2004-12-15 15:35:02 +0000
commit631f43ca2d2a4aa9be7c654c3537a60063754242 (patch)
tree917111ff0b8c9852d2688dbfb512857626edade5
parent51c0e854fb7998905284eb74e44568f558fa4fc4 (diff)
downloadman-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.26
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.