Bug 1251520: fixed comments on socket options. draft
authorNils Ohlmeier [:drno] <drno@ohlmeier.org>
Thu, 25 Feb 2016 21:54:37 -0800
changeset 336049 b4be84223d65bb7cc8ecf928a14f4b585ea52b7d
parent 335982 eb25b90a05c194bfd4f498ff3ffee7440f85f1cd
child 515282 f31e595884555ff97587ad38d88d0dc2268a84b4
push id11950
push userdrno@ohlmeier.org
push dateWed, 02 Mar 2016 05:20:53 +0000
bugs1251520
milestone47.0a1
Bug 1251520: fixed comments on socket options. MozReview-Commit-ID: IOJ5aguzjIq
nsprpub/pr/include/prio.h
nsprpub/pr/tests/sockopt.c
--- a/nsprpub/pr/include/prio.h
+++ b/nsprpub/pr/include/prio.h
@@ -191,18 +191,18 @@ union PRNetAddr {
 ***************************************************************************
 */
 typedef enum PRSockOption
 {
     PR_SockOpt_Nonblocking,     /* nonblocking io */
     PR_SockOpt_Linger,          /* linger on close if data present */
     PR_SockOpt_Reuseaddr,       /* allow local address reuse */
     PR_SockOpt_Keepalive,       /* keep connections alive */
-    PR_SockOpt_RecvBufferSize,  /* send buffer size */
-    PR_SockOpt_SendBufferSize,  /* receive buffer size */
+    PR_SockOpt_RecvBufferSize,  /* receive buffer size */
+    PR_SockOpt_SendBufferSize,  /* send buffer size */
 
     PR_SockOpt_IpTimeToLive,    /* time to live */
     PR_SockOpt_IpTypeOfService, /* type of service and precedence */
 
     PR_SockOpt_AddMember,       /* add an IP group membership */
     PR_SockOpt_DropMember,      /* drop an IP group membership */
     PR_SockOpt_McastInterface,  /* multicast interface address */
     PR_SockOpt_McastTimeToLive, /* multicast timetolive */
--- a/nsprpub/pr/tests/sockopt.c
+++ b/nsprpub/pr/tests/sockopt.c
@@ -38,18 +38,18 @@ int main(int argc, char **argv)
     PRFileDesc *udp = PR_NewUDPSocket();
     PRFileDesc *tcp = PR_NewTCPSocket();
     const char *tag[] =
     {
         "PR_SockOpt_Nonblocking",     /* nonblocking io */
         "PR_SockOpt_Linger",          /* linger on close if data present */
         "PR_SockOpt_Reuseaddr",       /* allow local address reuse */
         "PR_SockOpt_Keepalive",       /* keep connections alive */
-        "PR_SockOpt_RecvBufferSize",  /* send buffer size */
-        "PR_SockOpt_SendBufferSize",  /* receive buffer size */
+        "PR_SockOpt_RecvBufferSize",  /* receive buffer size */
+        "PR_SockOpt_SendBufferSize",  /* send buffer size */
 
         "PR_SockOpt_IpTimeToLive",    /* time to live */
         "PR_SockOpt_IpTypeOfService", /* type of service and precedence */
 
         "PR_SockOpt_AddMember",       /* add an IP group membership */
         "PR_SockOpt_DropMember",      /* drop an IP group membership */
         "PR_SockOpt_McastInterface",  /* multicast interface address */
         "PR_SockOpt_McastTimeToLive", /* multicast timetolive */