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...@apache.org on 2012/11/03 20:05:29 UTC
svn commit: r1405402 - in /apr/apr/trunk: CHANGES include/apr_network_io.h
network_io/unix/sockopt.c
Author: trawick
Date: Sat Nov 3 19:05:29 2012
New Revision: 1405402
URL: http://svn.apache.org/viewvc?rev=1405402&view=rev
Log:
apr_socket_accept_filter(): The 2nd and 3rd arguments are now
const char * instead of char *.
Modified:
apr/apr/trunk/CHANGES
apr/apr/trunk/include/apr_network_io.h
apr/apr/trunk/network_io/unix/sockopt.c
Modified: apr/apr/trunk/CHANGES
URL: http://svn.apache.org/viewvc/apr/apr/trunk/CHANGES?rev=1405402&r1=1405401&r2=1405402&view=diff
==============================================================================
--- apr/apr/trunk/CHANGES [utf-8] (original)
+++ apr/apr/trunk/CHANGES [utf-8] Sat Nov 3 19:05:29 2012
@@ -1,6 +1,9 @@
-*- coding: utf-8 -*-
Changes for APR 2.0.0
+ *) apr_socket_accept_filter(): The 2nd and 3rd arguments are now
+ const char * instead of char *. [Jeff Trawick]
+
*) Fix potential data corruption in apr_brigade_write() and friends if
the last bucket of the brigade is a heap bucket that has been split,
and there are still references to the next part of the original bucket
Modified: apr/apr/trunk/include/apr_network_io.h
URL: http://svn.apache.org/viewvc/apr/apr/trunk/include/apr_network_io.h?rev=1405402&r1=1405401&r2=1405402&view=diff
==============================================================================
--- apr/apr/trunk/include/apr_network_io.h (original)
+++ apr/apr/trunk/include/apr_network_io.h Sat Nov 3 19:05:29 2012
@@ -798,8 +798,8 @@ APR_DECLARE(int) apr_ipsubnet_test(apr_i
* @param args Any extra args to the accept filter. Passing NULL here removes
* the accept filter.
*/
-apr_status_t apr_socket_accept_filter(apr_socket_t *sock, char *name,
- char *args);
+apr_status_t apr_socket_accept_filter(apr_socket_t *sock, const char *name,
+ const char *args);
#endif
/**
Modified: apr/apr/trunk/network_io/unix/sockopt.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/network_io/unix/sockopt.c?rev=1405402&r1=1405401&r2=1405402&view=diff
==============================================================================
--- apr/apr/trunk/network_io/unix/sockopt.c (original)
+++ apr/apr/trunk/network_io/unix/sockopt.c Sat Nov 3 19:05:29 2012
@@ -393,8 +393,8 @@ apr_status_t apr_gethostname(char *buf,
}
#if APR_HAS_SO_ACCEPTFILTER
-apr_status_t apr_socket_accept_filter(apr_socket_t *sock, char *name,
- char *args)
+apr_status_t apr_socket_accept_filter(apr_socket_t *sock, const char *name,
+ const char *args)
{
struct accept_filter_arg af;
strncpy(af.af_name, name, 16);