]> git.sur5r.net Git - openldap/commitdiff
ITS#2428 braindead compiler...
authorHoward Chu <hyc@openldap.org>
Tue, 8 Apr 2003 02:54:37 +0000 (02:54 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 8 Apr 2003 02:54:37 +0000 (02:54 +0000)
tests/progs/slapd-modrdn.c

index cfedca5cbaaf52daf61fb1e294bae297b9727655..92e3970b93b39a9b5761cc1b3b3e0ede8b18af6d 100644 (file)
@@ -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 );