]> git.sur5r.net Git - openldap/commitdiff
Don't bother with friendly name
authorKurt Zeilenga <kurt@openldap.org>
Sat, 1 Dec 2001 03:40:19 +0000 (03:40 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 1 Dec 2001 03:40:19 +0000 (03:40 +0000)
clients/ud/util.c

index 4531c0bb256e978fa747ecf6244de4f20d5069f5..bfaa6af37a77c0ebdc8938ca03e534d8151bd662 100644 (file)
@@ -37,9 +37,6 @@
 void
 printbase( char *lead, char *s )
 {
-       register char **cp;
-       char **rdns;
-
 #ifdef DEBUG
        if (debug & D_TRACE)
                printf("->printbase(%s, %s)\n", lead, s);
@@ -52,19 +49,7 @@ printbase( char *lead, char *s )
                printf("%sroot\n", lead);
                return;
        }
-       printf("%s", lead);
-       rdns = ldap_explode_dn(s, TRUE);
-       for (cp = rdns; ; ) {
-               printf("%s", friendly_name(*cp));
-               cp++;
-               if (*cp == NULL) {
-                       printf("\n");
-                       break;
-               }
-               else
-                       printf(", ");
-       }
-       ldap_value_free(rdns);
+       printf("%s%s\n", lead, s);
        return;
 }
 
@@ -361,18 +346,6 @@ code_to_str( int i )
        }
 }
 
-char *
-friendly_name( char *s )
-{
-       static LDAPFriendlyMap *map = NULL;
-       static char *cp;
-
-       cp = ldap_friendly_name(FRIENDLYFILE, s, &map);
-       if (cp == NULL)
-               return(s);
-       return(cp);
-}
-
 #ifdef UOFM
 
 /* return TRUE if s has the syntax of a uniqname */