]> git.sur5r.net Git - openldap/commitdiff
Reference slapi_search_internal() due to linker error -- need to fix this
authorLuke Howard <lukeh@openldap.org>
Thu, 23 Jan 2003 11:29:52 +0000 (11:29 +0000)
committerLuke Howard <lukeh@openldap.org>
Thu, 23 Jan 2003 11:29:52 +0000 (11:29 +0000)
properly XXX

servers/slapd/search.c
servers/slapd/slapi/slapi_ops.c

index 481af2ce287e9b516bd686adecd226a55b8cd5c8..801600be90888cf5d723d2c7d1433cc3f2b100bb 100644 (file)
@@ -489,10 +489,10 @@ static int doPreSearchPluginFNs( Backend *be, Slapi_PBlock *pb )
                 */
 #ifdef NEW_LOGGING
                LDAP_LOG( OPERATION, INFO, "doPreSearchPluginFNs: search preoperation plugin "
-                               "failed\n", 0, 0, 0 );
+                               "returned %d\n", rc, 0, 0 );
 #else
                Debug(LDAP_DEBUG_TRACE, "doPreSearchPluginFNs: search preoperation plugin "
-                               "failed.\n", 0, 0, 0);
+                               "returned %d.\n", rc, 0, 0);
 #endif
                if ( slapi_pblock_get( pb, SLAPI_RESULT_CODE, (void *)&rc ) != 0)
                        rc = LDAP_OTHER;
@@ -540,5 +540,15 @@ static int doPostSearchPluginFNs( Backend *be, Slapi_PBlock *pb )
 
        return LDAP_SUCCESS;
 }
+
+void dummy(void)
+{
+       /*
+        * XXX slapi_search_internal() was no getting pulled
+        * in; all manner of linker flags failed to link it.
+        * FIXME
+        */
+       slapi_search_internal( NULL, 0, NULL, NULL, NULL, 0 );
+}
 #endif /* LDAP_SLAPI */
 
index b0d2bbf5c6c48e76d57b246de8926e4645f99fdd..aff7521afa00f9bb3f08934f7c86333169968ec3 100644 (file)
@@ -1271,7 +1271,8 @@ slapi_search_internal(
 #if defined(LDAP_SLAPI)\r
        return slapi_search_internal_bind( NULL, base, scope, filStr,\r
                        controls, attrs, attrsonly );\r
-#endif\r
+#else\r
        return NULL;\r
+#endif /* LDAP_SLAPI */\r
 }\r
 \r