summaryrefslogtreecommitdiff
path: root/ext/socket/ancdata.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-04 12:02:37 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-04 12:02:37 +0000
commit9c4ac94a8ec63cfa477e6aa0bcc2cc790f3a5808 (patch)
tree6a8e6d0b5f6a3d53dec6a25e0e624b496a3d0680 /ext/socket/ancdata.c
parentebd3a0e80b017f05c1e15da9b90df9d34b61622a (diff)
fix typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/ancdata.c')
-rw-r--r--ext/socket/ancdata.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/socket/ancdata.c b/ext/socket/ancdata.c
index c597bd1..8714add 100644
--- a/ext/socket/ancdata.c
+++ b/ext/socket/ancdata.c
@@ -54,7 +54,7 @@ ip_cmsg_type_to_sym(int level, int cmsg_type)
* - etc.
*
* _cmsg_type_ should be an integer, a string or a symbol.
- * If a string/symbol is specified, it is interepreted depend on _cmsg_level_.
+ * If a string/symbol is specified, it is interpreted depend on _cmsg_level_.
* - Socket::SCM_RIGHTS, "SCM_RIGHTS", "RIGHTS", :SCM_RIGHTS, :RIGHTS for SOL_SOCKET
* - Socket::IP_RECVTTL, "RECVTTL" and :RECVTTL for IPPROTO_IP
* - Socket::IPV6_PKTINFO, "PKTINFO" and :PKTINFO for IPPROTO_IPV6
@@ -1694,7 +1694,7 @@ bsock_recvmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
*
* _flags_ is bitwise OR of MSG_* constants such as Socket::MSG_PEEK.
*
- * _maxcontrolslen_ is the maximum length of controls (ancillary data) to receive.
+ * _maxcontrollen_ is the maximum length of controls (ancillary data) to receive.
*
* _opts_ is option hash.
* Currently :scm_rights=>bool is the only option.
@@ -1704,7 +1704,7 @@ bsock_recvmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
* In this case, recvmsg closes the passed file descriptors immediately.
* This is the default behavior.
*
- * If :scm_rights value is neigher nil nor false, application expects SCM_RIGHTS control message.
+ * If :scm_rights value is neither nil nor false, application expects SCM_RIGHTS control message.
* In this case, recvmsg creates IO objects for each file descriptors for
* Socket::AncillaryData#unix_rights method.
*
@@ -1723,7 +1723,7 @@ bsock_recvmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
*
* #<Socket::AncillaryData: AF_UNIX SOCKET RIGHTS 7>
*
- * _maxmesglen_ and _maxcontrolslen_ can be nil.
+ * _maxmesglen_ and _maxcontrollen_ can be nil.
* In that case, the buffer will be grown until the message is not truncated.
* Internally, MSG_PEEK is used and MSG_TRUNC/MSG_CTRUNC are checked.
*