mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
cast printf(%ld) argument from pid_t to long
This commit is contained in:
parent
42fdd3766f
commit
7bfd11cb4c
@ -248,7 +248,7 @@ do_addel(
|
||||
|
||||
|
||||
fprintf( stderr, "PID=%ld - Add/Delete(%d): entry=\"%s\".\n",
|
||||
pid, maxloop, entry );
|
||||
(long) pid, maxloop, entry );
|
||||
|
||||
for ( i = 0; i < maxloop; i++ ) {
|
||||
|
||||
@ -273,7 +273,7 @@ do_addel(
|
||||
|
||||
}
|
||||
|
||||
fprintf( stderr, " PID=%ld - Add/Delete done.\n", pid );
|
||||
fprintf( stderr, " PID=%ld - Add/Delete done.\n", (long) pid );
|
||||
|
||||
ldap_unbind( ld );
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ do_search( char *host, int port, char *sbase, char *filter, int maxloop )
|
||||
|
||||
|
||||
fprintf( stderr, "PID=%ld - Search(%d): base=\"%s\", filter=\"%s\".\n",
|
||||
pid, maxloop, sbase, filter );
|
||||
(long) pid, maxloop, sbase, filter );
|
||||
|
||||
for ( i = 0; i < maxloop; i++ ) {
|
||||
LDAPMessage *res;
|
||||
@ -119,7 +119,7 @@ do_search( char *host, int port, char *sbase, char *filter, int maxloop )
|
||||
ldap_msgfree( res );
|
||||
}
|
||||
|
||||
fprintf( stderr, " PID=%ld - Search done.\n", pid );
|
||||
fprintf( stderr, " PID=%ld - Search done.\n", (long) pid );
|
||||
|
||||
ldap_unbind( ld );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user