]> git.sur5r.net Git - openldap/commitdiff
Remove lint reported have Hallvard
authorKurt Zeilenga <kurt@openldap.org>
Fri, 23 Oct 1998 21:59:32 +0000 (21:59 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 23 Oct 1998 21:59:32 +0000 (21:59 +0000)
clients/gopher/go500gw.c
clients/gopher/setproctitle.c
clients/ud/util.c

index df93aa7f0c910667ef67eff4248ebdaf101cbd3c..6d1ed89bf16b1dbca212a4b5864a38f93442acec 100644 (file)
@@ -776,15 +776,16 @@ char      *query;
 
                e = ldap_first_entry( ld, res );
                oc = ldap_get_values( ld, e, "objectClass" );
-               if ( isnonleaf( ld, oc, dn ) ) {
-                       dn = ldap_get_dn( ld, e );
+               dn = ldap_get_dn( ld, e );
 
+               if ( isnonleaf( ld, oc, dn ) ) {
                        rc = do_menu( ld, fp, dn );
 
                        free( dn );
                        return( rc );
                }
 
+               free( dn );
                ldap_value_free( oc );
        }
 
index 26b42c0ceede62f7bc1e854bfef26a1f0a6aa34e..c7f832604d7c4371e1a73a981286870ee232163b 100644 (file)
@@ -21,6 +21,7 @@ int   Argc;           /* original argc */
 /* VARARGS */
 setproctitle( fmt, a, b, c )
 char *fmt;
+char *a, *b, *c;
 {
        static char *endargv = (char *)0;
        char    *s;
index 44a693e3e950cb4560aea3eec46b0a6ea57e1db1..0dd3c53c35f138d92fdcb9dcac292fa7163938ba 100644 (file)
@@ -480,7 +480,7 @@ char *cp;
        return(tmp);
 }
 
-char * code_to_str(i)
+char * code_to_str(int i)
 {
        switch(i) {
        case LDAP_MOD_ADD : return("ADD");