From 2cf9473c469e2cfb8d8735435a8c1c3fe8b6ca69 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 8 May 2009 16:31:50 +0000 Subject: [PATCH] misc cleanup --- servers/slapd/back-sql/proto-sql.h | 2 +- servers/slapd/back-sql/sql-wrap.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-sql/proto-sql.h b/servers/slapd/back-sql/proto-sql.h index 2ac00ec662..4eccf101e5 100644 --- a/servers/slapd/back-sql/proto-sql.h +++ b/servers/slapd/back-sql/proto-sql.h @@ -183,7 +183,7 @@ void backsql_entry_clean( Operation *op, Entry *e ); * sql-wrap.h */ -RETCODE backsql_Prepare( SQLHDBC dbh, SQLHSTMT *sth, char* query, int timeout ); +RETCODE backsql_Prepare( SQLHDBC dbh, SQLHSTMT *sth, const char* query, int timeout ); #define backsql_BindParamStr( sth, par_ind, io, str, maxlen ) \ SQLBindParameter( (sth), (SQLUSMALLINT)(par_ind), \ diff --git a/servers/slapd/back-sql/sql-wrap.c b/servers/slapd/back-sql/sql-wrap.c index d8baf38df8..0a25d58de4 100644 --- a/servers/slapd/back-sql/sql-wrap.c +++ b/servers/slapd/back-sql/sql-wrap.c @@ -52,7 +52,7 @@ backsql_PrintErrors( SQLHENV henv, SQLHDBC hdbc, SQLHSTMT sth, int rc ) } RETCODE -backsql_Prepare( SQLHDBC dbh, SQLHSTMT *sth, char *query, int timeout ) +backsql_Prepare( SQLHDBC dbh, SQLHSTMT *sth, const char *query, int timeout ) { RETCODE rc; -- 2.39.5