Reference slapi_search_internal() due to linker error -- need to fix this

properly XXX
This commit is contained in:
Luke Howard 2003-01-23 11:29:52 +00:00
parent 8c18022b41
commit 8621f955b2
2 changed files with 14 additions and 3 deletions

View 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 */

View File

@ -1271,7 +1271,8 @@ slapi_search_internal(
#if defined(LDAP_SLAPI)
return slapi_search_internal_bind( NULL, base, scope, filStr,
controls, attrs, attrsonly );
#endif
#else
return NULL;
#endif /* LDAP_SLAPI */
}