From: Pierangelo Masarati Date: Fri, 8 May 2009 16:31:50 +0000 (+0000) Subject: misc cleanup X-Git-Tag: ACLCHECK_0~565 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2cf9473c469e2cfb8d8735435a8c1c3fe8b6ca69;p=openldap misc cleanup --- 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;