summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Edward Rudd 2006-11-15 03:34:02 +0000
committerGravatar Edward Rudd 2006-11-15 03:34:02 +0000
commit4a23b85bf1e05ed218572079046ee6a26bdfeeda (patch)
tree75371939a1891060c9147817051ced594be80d8a
parentee22f4a4df3632c5d6def4ef108cbdbda0ce4e47 (diff)
move post_config before register1.101
-rw-r--r--mod_log_sql_logio.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/mod_log_sql_logio.c b/mod_log_sql_logio.c
index 5de477f..95d1763 100644
--- a/mod_log_sql_logio.c
+++ b/mod_log_sql_logio.c
@@ -106,7 +106,12 @@ static int logio_pre_conn(conn_rec *c, void *csd) {
106 return OK; 106 return OK;
107} 107}
108 108
109static int post_config(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s); 109static int post_config(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s)
110{
111 log_sql_register_item(s,p,'i', log_bytes_in, "bytes_in", 0, 0);
112 log_sql_register_item(s,p,'o', log_bytes_out, "bytes_out", 0, 0);
113 return OK;
114}
110static void register_hooks(apr_pool_t *p) { 115static void register_hooks(apr_pool_t *p) {
111 static const char *pre[] = { "mod_log_sql.c", NULL }; 116 static const char *pre[] = { "mod_log_sql.c", NULL };
112 117
@@ -126,9 +131,3 @@ module AP_MODULE_DECLARE_DATA log_sql_logio_module = {
126 STANDARD20_MODULE_STUFF, 131 STANDARD20_MODULE_STUFF,
127 NULL, NULL, NULL, NULL, NULL, register_hooks 132 NULL, NULL, NULL, NULL, NULL, register_hooks
128}; 133};
129static int post_config(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s)
130{
131 log_sql_register_item(s,p,'i', log_bytes_in, "bytes_in", 0, 0);
132 log_sql_register_item(s,p,'o', log_bytes_out, "bytes_out", 0, 0);
133 return OK;
134}