You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@locus.apache.org on 2000/11/21 22:17:29 UTC
cvs commit: apr/include apr_network_io.h
trawick 00/11/21 13:17:29
Modified: network_io/unix sa_common.c
include apr_network_io.h
Log:
Remove a duplicate line in apr_set_port() and fix some
comments.
Submitted by: Greg Stein
Revision Changes Path
1.12 +0 -1 apr/network_io/unix/sa_common.c
Index: sa_common.c
===================================================================
RCS file: /home/cvs/apr/network_io/unix/sa_common.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- sa_common.c 2000/11/21 19:08:25 1.11
+++ sa_common.c 2000/11/21 21:17:25 1.12
@@ -69,7 +69,6 @@
{
/* XXX IPv6: assumes sin_port and sin6_port at same offset */
sockaddr->sa.sin.sin_port = htons(port);
- sockaddr->sa.sin.sin_port = htons(port);
return APR_SUCCESS;
}
1.79 +2 -2 apr/include/apr_network_io.h
Index: apr_network_io.h
===================================================================
RCS file: /home/cvs/apr/include/apr_network_io.h,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -r1.78 -r1.79
--- apr_network_io.h 2000/11/21 19:08:22 1.78
+++ apr_network_io.h 2000/11/21 21:17:27 1.79
@@ -466,7 +466,7 @@
/**
* Return the port in an APR socket address.
* @param port The port from the socket address.
- * @param sock The socket address to reference.
+ * @param sockaddr The socket address to reference.
*/
apr_status_t apr_get_port(apr_port_t *port, apr_sockaddr_t *sockaddr);
@@ -482,7 +482,7 @@
* Return the IP address (in numeric address string format) in
* an APR socket address.
* @param addr The IP address.
- * @param sock The socket address to reference.
+ * @param sockaddr The socket address to reference.
*/
apr_status_t apr_get_ipaddr(char **addr, apr_sockaddr_t *sockaddr);