summaryrefslogtreecommitdiffstats
path: root/mod_log_sql.c
diff options
context:
space:
mode:
authorGravatar Edward Rudd 2004-05-05 21:38:29 +0000
committerGravatar Edward Rudd 2004-05-05 21:38:29 +0000
commit0c5c1bb0d0a3efe9ba96784cc5bc58c174db562e (patch)
tree3b9bb9c9ecf6b72556d65a6cf7b56ccd1760470e /mod_log_sql.c
parentd98a5b1a3da9aec6911b28d1104411a942dffb1e (diff)
changed strstr to ap_strstr or ap_strstr_c
changed strchr to ap_strchr or ap_strchr_c
Diffstat (limited to 'mod_log_sql.c')
-rw-r--r--mod_log_sql.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mod_log_sql.c b/mod_log_sql.c
index 294380b..fc9dcc0 100644
--- a/mod_log_sql.c
+++ b/mod_log_sql.c
@@ -128,7 +128,7 @@ LOGSQL_DECLARE(void) log_sql_register_item(server_rec *s, apr_pool_t *p,
128 char *pos; 128 char *pos;
129 129
130 if (cfg->transfer_log_format) { 130 if (cfg->transfer_log_format) {
131 if ( (pos = strchr(cfg->transfer_log_format,key))!=NULL) { 131 if ( (pos = ap_strchr_c(cfg->transfer_log_format,key))!=NULL) {
132 cfg->parsed_log_format[pos - cfg->transfer_log_format] = item; 132 cfg->parsed_log_format[pos - cfg->transfer_log_format] = item;
133 } 133 }
134 } 134 }
@@ -373,7 +373,7 @@ static const char *set_log_sql_info(cmd_parms *cmd, void *dummy,
373 } 373 }
374 if (uri.path) { 374 if (uri.path) {
375 /* extract Database name */ 375 /* extract Database name */
376 char *off = strchr(++uri.path,'/'); 376 char *off = ap_strchr(++uri.path,'/');
377 if (off) 377 if (off)
378 *off='\0'; 378 *off='\0';
379 set_dbparam(cmd, NULL, "database", uri.path); 379 set_dbparam(cmd, NULL, "database", uri.path);
@@ -850,7 +850,7 @@ static int log_sql_transaction(request_rec *orig)
850 if ((r->uri) && (cls->transfer_accept_list->nelts)) { 850 if ((r->uri) && (cls->transfer_accept_list->nelts)) {
851 proceed = 0; 851 proceed = 0;
852 for (ptrptr = (char **) cls->transfer_accept_list->elts; ptrptr < ptrptr2; ptrptr = (char **) ((char *) ptrptr + cls->transfer_accept_list->elt_size)) 852 for (ptrptr = (char **) cls->transfer_accept_list->elts; ptrptr < ptrptr2; ptrptr = (char **) ((char *) ptrptr + cls->transfer_accept_list->elt_size))
853 if (strstr(r->uri, *ptrptr)) { 853 if (ap_strstr(r->uri, *ptrptr)) {
854 proceed = 1; 854 proceed = 1;
855 break; 855 break;
856 } 856 }
@@ -863,7 +863,7 @@ static int log_sql_transaction(request_rec *orig)
863 ptrptr2 = (char **) (cls->transfer_ignore_list->elts + (cls->transfer_ignore_list->nelts * cls->transfer_ignore_list->elt_size)); 863 ptrptr2 = (char **) (cls->transfer_ignore_list->elts + (cls->transfer_ignore_list->nelts * cls->transfer_ignore_list->elt_size));
864 if (r->uri) { 864 if (r->uri) {
865 for (ptrptr = (char **) cls->transfer_ignore_list->elts; ptrptr < ptrptr2; ptrptr = (char **) ((char *) ptrptr + cls->transfer_ignore_list->elt_size)) 865 for (ptrptr = (char **) cls->transfer_ignore_list->elts; ptrptr < ptrptr2; ptrptr = (char **) ((char *) ptrptr + cls->transfer_ignore_list->elt_size))
866 if (strstr(r->uri, *ptrptr)) { 866 if (ap_strstr(r->uri, *ptrptr)) {
867 return OK; 867 return OK;
868 } 868 }
869 } 869 }
@@ -874,7 +874,7 @@ static int log_sql_transaction(request_rec *orig)
874 thehost = ap_get_remote_host(r->connection, r->per_dir_config, REMOTE_NAME, NULL); 874 thehost = ap_get_remote_host(r->connection, r->per_dir_config, REMOTE_NAME, NULL);
875 if (thehost) { 875 if (thehost) {
876 for (ptrptr = (char **) cls->remhost_ignore_list->elts; ptrptr < ptrptr2; ptrptr = (char **) ((char *) ptrptr + cls->remhost_ignore_list->elt_size)) 876 for (ptrptr = (char **) cls->remhost_ignore_list->elts; ptrptr < ptrptr2; ptrptr = (char **) ((char *) ptrptr + cls->remhost_ignore_list->elt_size))
877 if (strstr(thehost, *ptrptr)) { 877 if (ap_strstr(thehost, *ptrptr)) {
878 return OK; 878 return OK;
879 } 879 }
880 } 880 }