]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-sql/other.c
Add a safety check to bvcasechr
[openldap] / servers / slapd / back-sql / other.c
index a736b1d63da43c7e70c831e59ce28ac573b47a63..dc40a0e28d6791f275061f85e49a476a862e401a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *      Copyright 1999, Dmitry Kovalev (zmit@mail.ru), All rights reserved.
+ *      Copyright 1999, Dmitry Kovalev <mit@openldap.org>, All rights reserved.
  *
  *      Redistribution and use in source and binary forms are permitted only
  *      as authorized by the OpenLDAP Public License.  A copy of this
@@ -9,6 +9,8 @@
 
 #include "portable.h"
 
+#ifdef SLAPD_SQL
+
 #include <stdio.h>
 #include <sys/types.h>
 #include "slap.h"
@@ -20,10 +22,12 @@ int backsql_dummy()
  return 0;
 }
 
-int backsql_compare(BackendDB *be,Connection *conn,Operation *op,
-       char *dn,char *ndn,Ava *ava)
+int    backsql_compare(BackendDB *bd,
+       Connection *conn, Operation *op,
+       const char *dn, const char *ndn,
+       AttributeAssertion *ava )
 {
- Debug(LDAP_DEBUG_TRACE,"==>backsql_compare()\n",0,0,0);
+ Debug(LDAP_DEBUG_TRACE,"==>backsql_compare() - not implemented\n",0,0,0);
  return 0;
 }
 
@@ -34,3 +38,5 @@ int backsql_abandon( BackendDB *be,
  Debug(LDAP_DEBUG_TRACE,"<==backsql_abandon()\n",0,0,0);
  return 0;
 }
+
+#endif /* SLAPD_SQL */