From: Kurt Zeilenga Date: Thu, 6 Jul 2000 20:36:23 +0000 (+0000) Subject: Use setproctitle correctly X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2466 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9488612057686ef69ca2ff3edf14a0230f80c938;p=openldap Use setproctitle correctly --- diff --git a/clients/gopher/go500.c b/clients/gopher/go500.c index ca03ce0a98..34b3e1a5ef 100644 --- a/clients/gopher/go500.c +++ b/clients/gopher/go500.c @@ -213,7 +213,7 @@ main( int argc, char **argv ) } #ifdef LDAP_PROCTITLE - setproctitle( hp == NULL ? inet_ntoa( from.sin_addr ) : + setproctitle( "%s", hp == NULL ? inet_ntoa( from.sin_addr ) : hp->h_name ); #endif } diff --git a/clients/gopher/go500gw.c b/clients/gopher/go500gw.c index dfda607001..fc9fa853ee 100644 --- a/clients/gopher/go500gw.c +++ b/clients/gopher/go500gw.c @@ -236,7 +236,7 @@ main (int argc, char **argv ) } #ifdef LDAP_PROCTITLE - setproctitle( hp == NULL ? inet_ntoa( from.sin_addr ) : + setproctitle( "%s", hp == NULL ? inet_ntoa( from.sin_addr ) : hp->h_name ); #endif }