From: Quanah Gibson-Mount Date: Wed, 3 Jun 2009 00:29:43 +0000 (+0000) Subject: misc cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_4_17~78 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=79d199fa7eb50712f56fb59f26e1e0a0c1e02425;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;