-/*
- * meta_back_count_candidates
- *
- * returns a count of the possible candidate targets
- * Note: dn MUST be normalized
- */
-
-int
-meta_back_count_candidates(
- struct metainfo *li,
- struct berval *ndn
-)
-{
- int i, cnt = 0;
-
- /*
- * I know assertions should not check run-time values;
- * at present I didn't find a place for such checks
- * after config.c
- */
- assert( li->targets != NULL );
- assert( li->ntargets != 0 );
-
- for ( i = 0; i < li->ntargets; ++i ) {
- if ( meta_back_is_candidate( &li->targets[ i ]->mt_nsuffix, ndn ) )
- {
- ++cnt;
- }
- }
-
- return cnt;
-}
-