From: Howard Chu Date: Tue, 8 Apr 2003 02:54:37 +0000 (+0000) Subject: ITS#2428 braindead compiler... X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~429 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a69d32153f2785564a3054706e9eb264c0912c14;p=openldap ITS#2428 braindead compiler... --- diff --git a/tests/progs/slapd-modrdn.c b/tests/progs/slapd-modrdn.c index cfedca5cba..92e3970b93 100644 --- a/tests/progs/slapd-modrdn.c +++ b/tests/progs/slapd-modrdn.c @@ -98,10 +98,11 @@ do_modrdn( char *uri, char *host, int port, char *manager, { LDAP *ld = NULL; int i; - pid_t pid = getpid(); + pid_t pid; char *DNs[2]; char *rdns[2]; + pid = getpid(); DNs[0] = entry; DNs[1] = strdup( entry ); @@ -164,7 +165,6 @@ do_modrdn( char *uri, char *host, int port, char *manager, if ( rc != LDAP_NO_SUCH_OBJECT ) break; continue; } - } fprintf( stderr, " PID=%ld - Modrdn done.\n", (long) pid );