From 2160710b6f3b9ed88a6f9d4adfea35f600e1e80d Mon Sep 17 00:00:00 2001 From: Edward Rudd Date: Tue, 30 Dec 2003 21:05:30 +0000 Subject: mysql_error returns const char * in mysql 4.x, updated variable defs in safe_sql_query to avoid warning. --- mod_log_sql.c | 4 ++-- 1 file 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 @@ -/* $Header: /home/cvs/mod_log_sql/mod_log_sql.c,v 1.4 2003/12/23 19:49:56 urkle Exp $ */ +/* $Header: /home/cvs/mod_log_sql/mod_log_sql.c,v 1.5 2003/12/30 21:05:30 urkle Exp $ */ /* --------* * DEFINES * * --------*/ @@ -785,7 +785,7 @@ static unsigned int safe_sql_query(request_rec *r, const char *query) void (*handler) (int); logsql_state *cls; unsigned int real_error = 0; - char *real_error_str = NULL; + const char *real_error_str = NULL; /* A failed mysql_query() may send a SIGPIPE, so we ignore that signal momentarily. */ handler = signal(SIGPIPE, SIG_IGN); -- cgit