httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaillet...@apache.org
Subject svn commit: r1409437 - /httpd/httpd/trunk/include/util_filter.h
Date Wed, 14 Nov 2012 21:41:19 GMT
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.



Mime
View raw message