Mod Cplusplus CVS committal
Author : johnksterling
Project : mod_cplusplus
Module : example
Dir : mod_cplusplus/example/input_filter
Modified Files:
test_input.cpp
Log Message:
commit patch to fix a couple of problems: a) portability, b) uninitialized variables, and c) properly dealing with the fact that exceptions can be raised (autoptrs etc). Submitted by Jonathan Wakely <co...@co...>
===================================================================
RCS file: /cvsroot/modcplusplus/mod_cplusplus/example/input_filter/test_input.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- test_input.cpp 9 Mar 2005 12:59:21 -0000 1.15
+++ test_input.cpp 7 Aug 2005 20:24:47 -0000 1.16
@@ -64,7 +64,7 @@
new_buf[n] = data[n];
}
ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, 0, NULL,
- "crazy content: %s (%d)", new_buf, len);
+ "crazy content: %s (%lu)", new_buf, (unsigned long)len);
output_bucket = apr_bucket_heap_create(new_buf, len, NULL,
f->c->bucket_alloc);
APR_BRIGADE_INSERT_TAIL(bb, output_bucket);
|