Workaround buggy HP compiler

This commit is contained in:
Kurt Zeilenga 2003-04-30 05:13:57 +00:00
parent cdd84c3483
commit 05a6f29d77

View File

@ -98,10 +98,11 @@ do_modrdn( char *uri, char *host, int port, char *manager,
{ {
LDAP *ld = NULL; LDAP *ld = NULL;
int i; int i;
pid_t pid = getpid(); pid_t pid;
char *DNs[2]; char *DNs[2];
char *rdns[2]; char *rdns[2];
pid = getpid();
DNs[0] = entry; DNs[0] = entry;
DNs[1] = strdup( 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; if ( rc != LDAP_NO_SUCH_OBJECT ) break;
continue; continue;
} }
} }
fprintf( stderr, " PID=%ld - Modrdn done.\n", (long) pid ); fprintf( stderr, " PID=%ld - Modrdn done.\n", (long) pid );