From 12346ab42f683ae701c49045beeb36c50cdf30b2 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 23 Oct 1998 21:59:32 +0000 Subject: [PATCH] Remove lint reported have Hallvard --- clients/gopher/go500gw.c | 5 +++-- clients/gopher/setproctitle.c | 1 + clients/ud/util.c | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) 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"); -- 2.39.5