cast printf(%ld) argument from pid_t to long

This commit is contained in:
Hallvard Furuseth 1999-03-03 17:40:08 +00:00
parent 42fdd3766f
commit 7bfd11cb4c
2 changed files with 4 additions and 4 deletions

View File

@ -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 );
}

View File

@ -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 );
}