[Date Prev][Date Next] [Chronological] [Thread] [Top]

tests/progs/slapd-modrdn.c compile fails on HP-UX (ITS#2428)



Full_Name: Matthew Backes
Version: 2.1, HEAD
OS: HP-UX
URL: 
Submission from: (NULL) (130.166.10.73)


HP's ANSI C compiler can't compile tests/progs/slapd-modrdn.c.

cc: "slapd-modrdn.c", line 101: error 1521: Incorrect initialization

This is from HP C/ANSI C Compiler v B.11.11.02 with a PHSS_24830 (v 1.0) ANSI C
compiler General patch.

--- tests/progs/slapd-modrdn.c.~1.1.2.2.~       Wed Mar  5 15:48:34 2003
+++ tests/progs/slapd-modrdn.c  Mon Apr  7 16:05:50 2003
@@ -98,10 +98,11 @@
 {
        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 );