From 79d199fa7eb50712f56fb59f26e1e0a0c1e02425 Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Wed, 3 Jun 2009 00:29:43 +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