diff options
author | Edward Rudd | 2003-12-30 21:05:30 +0000 |
---|---|---|
committer | Edward Rudd | 2003-12-30 21:05:30 +0000 |
commit | 2160710b6f3b9ed88a6f9d4adfea35f600e1e80d (patch) | |
tree | 2eaaf9ac053aa75efb4c90b167bc14baa57a4c76 | |
parent | ab1ac8ba7570005c169e7aa772762b55d354e07d (diff) |
mysql_error returns const char * in mysql 4.x, updated variable defs in safe_sql_query to avoid warning.
-rw-r--r-- | mod_log_sql.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod_log_sql.c b/mod_log_sql.c index de6fe1a..7ec2100 100644 --- a/mod_log_sql.c +++ b/mod_log_sql.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Header: /home/cvs/mod_log_sql/mod_log_sql.c,v 1.4 2003/12/23 19:49:56 urkle Exp $ */ | 1 | /* $Header: /home/cvs/mod_log_sql/mod_log_sql.c,v 1.5 2003/12/30 21:05:30 urkle Exp $ */ |
2 | /* --------* | 2 | /* --------* |
3 | * DEFINES * | 3 | * DEFINES * |
4 | * --------*/ | 4 | * --------*/ |
@@ -785,7 +785,7 @@ static unsigned int safe_sql_query(request_rec *r, const char *query) | |||
785 | void (*handler) (int); | 785 | void (*handler) (int); |
786 | logsql_state *cls; | 786 | logsql_state *cls; |
787 | unsigned int real_error = 0; | 787 | unsigned int real_error = 0; |
788 | char *real_error_str = NULL; | 788 | const char *real_error_str = NULL; |
789 | 789 | ||
790 | /* A failed mysql_query() may send a SIGPIPE, so we ignore that signal momentarily. */ | 790 | /* A failed mysql_query() may send a SIGPIPE, so we ignore that signal momentarily. */ |
791 | handler = signal(SIGPIPE, SIG_IGN); | 791 | handler = signal(SIGPIPE, SIG_IGN); |