From 7bfd11cb4c2c7ca789ba2b6ec3cdeee0f1853a4c Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Wed, 3 Mar 1999 17:40:08 +0000 Subject: [PATCH] cast printf(%ld) argument from pid_t to long --- tests/progs/slapd-addel.c | 4 ++-- tests/progs/slapd-search.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/progs/slapd-addel.c b/tests/progs/slapd-addel.c index 80401e331e..55b8dd994f 100644 --- a/tests/progs/slapd-addel.c +++ b/tests/progs/slapd-addel.c @@ -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 ); } diff --git a/tests/progs/slapd-search.c b/tests/progs/slapd-search.c index 27fc421be4..79857bef0b 100644 --- a/tests/progs/slapd-search.c +++ b/tests/progs/slapd-search.c @@ -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 ); } -- 2.39.5