summaryrefslogtreecommitdiffstatsabout
path: root/src/mod_log_sql_dbd.c
diff options
context:
space:
mode:
authorEdward Rudd <urkle@outoforder.cc>2008-10-25 16:53:01 (GMT)
committer Edward Rudd <urkle@outoforder.cc>2008-10-25 16:53:01 (GMT)
commitc694bd17981c10ffbfe67684afed1cdef432302d (patch)
treeb5749da116a2021bb0f1e488c9680995b7c162bf /src/mod_log_sql_dbd.c
parent4fb176a9f4fcb3f67924dce64681c2c49ec74152 (diff)
rename autoheader config file to autoconfig.h instead of config.h
Diffstat (limited to 'src/mod_log_sql_dbd.c')
-rw-r--r--src/mod_log_sql_dbd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mod_log_sql_dbd.c b/src/mod_log_sql_dbd.c
index c78a128..e641c35 100644
--- a/src/mod_log_sql_dbd.c
+++ b/src/mod_log_sql_dbd.c
@@ -8,7 +8,7 @@
8 8
9 9
10#ifdef HAVE_CONFIG_H 10#ifdef HAVE_CONFIG_H
11/* Undefine these to prevent conflicts between Apache ap_config_auto.h and 11/* Undefine these to prevent conflicts between Apache ap_config_auto.h and
12 * my config.h. Only really needed for Apache < 2.0.48, but it can't hurt. 12 * my config.h. Only really needed for Apache < 2.0.48, but it can't hurt.
13 */ 13 */
14#undef PACKAGE_BUGREPORT 14#undef PACKAGE_BUGREPORT
@@ -17,7 +17,7 @@
17#undef PACKAGE_TARNAME 17#undef PACKAGE_TARNAME
18#undef PACKAGE_VERSION 18#undef PACKAGE_VERSION
19 19
20#include "config.h" 20#include "autoconfig.h"
21#endif 21#endif
22 22
23#include "mod_log_sql.h" 23#include "mod_log_sql.h"
@@ -66,7 +66,7 @@ static void log_sql_dbd_close(logsql_dbconnection *db)
66/* Routine to escape the 'dangerous' characters that would otherwise 66/* Routine to escape the 'dangerous' characters that would otherwise
67 * corrupt the INSERT string: ', \, and " 67 * corrupt the INSERT string: ', \, and "
68 */ 68 */
69static const char *log_sql_dbd_escape(request_rec *r, const char *from_str, apr_pool_t *p, 69static const char *log_sql_dbd_escape(request_rec *r, const char *from_str, apr_pool_t *p,
70 logsql_dbconnection *db) 70 logsql_dbconnection *db)
71{ 71{
72 // Acquire a DBD connection from mod_dbd 72 // Acquire a DBD connection from mod_dbd
@@ -90,7 +90,7 @@ static logsql_query_ret log_sql_dbd_query(request_rec *r,logsql_dbconnection *db
90 ap_dbd_t *dbd = log_sql_dbd_getconnection(r); 90 ap_dbd_t *dbd = log_sql_dbd_getconnection(r);
91 if (!dbd) return LOGSQL_QUERY_NOLINK; 91 if (!dbd) return LOGSQL_QUERY_NOLINK;
92 92
93 // Run the query 93 // Run the query
94 ret = apr_dbd_query(dbd->driver, dbd->handle, &affected, query); 94 ret = apr_dbd_query(dbd->driver, dbd->handle, &affected, query);
95 if (ret == 0) { 95 if (ret == 0) {
96 return LOGSQL_QUERY_SUCCESS; 96 return LOGSQL_QUERY_SUCCESS;