Commit 05a6f29d authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Workaround buggy HP compiler

parent cdd84c34
...@@ -98,10 +98,11 @@ do_modrdn( char *uri, char *host, int port, char *manager, ...@@ -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, ...@@ -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 );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment