From: Kurt Zeilenga Date: Fri, 23 Oct 1998 21:59:32 +0000 (+0000) Subject: Remove lint reported have Hallvard X-Git-Tag: PHP3_TOOL_0_0~36 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=12346ab42f683ae701c49045beeb36c50cdf30b2;p=openldap Remove lint reported have Hallvard --- diff --git a/clients/gopher/go500gw.c b/clients/gopher/go500gw.c index df93aa7f0c..6d1ed89bf1 100644 --- a/clients/gopher/go500gw.c +++ b/clients/gopher/go500gw.c @@ -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 ); } diff --git a/clients/gopher/setproctitle.c b/clients/gopher/setproctitle.c index 26b42c0cee..c7f832604d 100644 --- a/clients/gopher/setproctitle.c +++ b/clients/gopher/setproctitle.c @@ -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; diff --git a/clients/ud/util.c b/clients/ud/util.c index 44a693e3e9..0dd3c53c35 100644 --- a/clients/ud/util.c +++ b/clients/ud/util.c @@ -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");