You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2012/11/14 22:41:19 UTC
svn commit: r1409437 - /httpd/httpd/trunk/include/util_filter.h
Author: jailletc36
Date: Wed Nov 14 21:41:19 2012
New Revision: 1409437
URL: http://svn.apache.org/viewvc?rev=1409437&view=rev
Log:
Give the opportunity to the compiler to compute at compile time the strlen of the given
string. Most of the calls to ap_fputs are done with constant strings.
Modified:
httpd/httpd/trunk/include/util_filter.h
Modified: httpd/httpd/trunk/include/util_filter.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/include/util_filter.h?rev=1409437&r1=1409436&r2=1409437&view=diff
==============================================================================
--- httpd/httpd/trunk/include/util_filter.h (original)
+++ httpd/httpd/trunk/include/util_filter.h Wed Nov 14 21:41:19 2012
@@ -548,7 +548,7 @@ AP_DECLARE(apr_status_t) ap_fflush(ap_fi
* @param str The string to write
*/
#define ap_fputs(f, bb, str) \
- apr_brigade_puts(bb, ap_filter_flush, f, str)
+ apr_brigade_write(bb, ap_filter_flush, f, str, strlen(str))
/**
* Write a character for the current filter, buffering if possible.