mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-29 10:07:32 -05:00
Use setproctitle correctly
This commit is contained in:
parent
b4d5d89151
commit
9488612057
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue