summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2010-07-14 15:19:01 -0600
committerRich Megginson <rmeggins@redhat.com>2010-07-14 15:20:21 -0600
commit2bfbe594a2c5593fd1ae695c118be94939651264 (patch)
treecc4b50ac20306732ea2e0309a66f49116178a0f1 /lib
parentb7a93e6ba4e5c11585399078efd8ec67230afdbc (diff)
downloadds-2bfbe594a2c5593fd1ae695c118be94939651264.tar.gz
ds-2bfbe594a2c5593fd1ae695c118be94939651264.tar.xz
ds-2bfbe594a2c5593fd1ae695c118be94939651264.zip
Bug 614242 - C99/ANSI C++ related compile errors on HP-UX
https://bugzilla.redhat.com/show_bug.cgi?id=614242 Resolves: bug 614242 Bug Description: C99/ANSI C++ related compile errors on HP-UX Reviewed by: rmeggins Branch: HEAD Fix Description: In lib/ldaputil/vtable.c, a global static struct is declared and initialized to {}. I see gcc allows this, and aCC does also but only with -AA ("newly supported ANSI C++ Standard features"). In ldap/servers/slapd/tools/ldclt/ldclt.c, an array size is set using a variable, which I think is legal in C99. Since the size is not computed, and this is the only place C99 is taken advantage of, this can be changed to a then I would instead add the -AC99 compiler flag for HP-UX. Platforms tested: HP-UX Flag Day: no Doc impact: no Patch submitted by: Ulf Weltman <ulf.weltman@hp.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/ldaputil/vtable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldaputil/vtable.c b/lib/ldaputil/vtable.c
index 18ac0a4d..7886006f 100644
--- a/lib/ldaputil/vtable.c
+++ b/lib/ldaputil/vtable.c
@@ -43,7 +43,7 @@
#include "ldaputili.h"
#include <ldap.h>
-static LDAPUVTable_t ldapu_VTable = {};
+static LDAPUVTable_t ldapu_VTable = {0};
/* Replace ldapu_VTable. Subsequently, ldaputil will call the
functions in 'from' (not the LDAP API) to access the directory.