]> git.sur5r.net Git - openldap/commitdiff
Print "<DEFAULT>" instead of "0" when ldapport=0 in ldapsearch -v
authorHallvard Furuseth <hallvard@openldap.org>
Tue, 17 Aug 1999 01:49:19 +0000 (01:49 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Tue, 17 Aug 1999 01:49:19 +0000 (01:49 +0000)
clients/tools/ldapsearch.c

index 6a3a90d51156ed221279ebad588a0d38314ad6b6..ff54f101ba3681823dfaf51e924f86c50820afe7 100644 (file)
@@ -339,7 +339,8 @@ main( int argc, char **argv )
 #endif
 
        if ( verbose ) {
-               fprintf( stderr, "ldap_init( %s, %d )\n",
+               fprintf( stderr,
+                       (ldapport ? "ldap_init( %s, %d )\n" : "ldap_init( %s, <DEFAULT> )\n"),
                        (ldaphost != NULL) ? ldaphost : "<DEFAULT>",
                        ldapport );
        }