Lines Matching refs:map
46 ldap_friendly_name( char *filename, char *name, FriendlyMap *map )
53 if ( map == NULL ) {
61 if ( *map == NULL ) {
72 if ( (*map = (FriendlyMap)NSLDAPI_MALLOC( (entries + 1) *
109 (*map)[i].f_unfriendly = nsldapi_strdup( buf );
110 (*map)[i].f_friendly = nsldapi_strdup( s );
115 (*map)[i].f_unfriendly = NULL;
118 for ( i = 0; (*map)[i].f_unfriendly != NULL; i++ ) {
119 if ( strcasecmp( name, (*map)[i].f_unfriendly ) == 0 )
120 return( (*map)[i].f_friendly );
128 ldap_free_friendlymap( FriendlyMap *map )
132 if ( map == NULL || *map == NULL ) {
136 for ( pF = *map; pF->f_unfriendly; pF++ ) {
140 NSLDAPI_FREE( *map );
141 *map = NULL;