summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2002-08-20 18:43:59 +0000
committerHerb Lewis <herb@samba.org>2002-08-20 18:43:59 +0000
commit2d05704d0e4b553d881f4e2563b2e71a9e1457da (patch)
treeaa96bd703dc1dce8bbc135b73707a9dba11f24c1 /source3/libads
parent89c68c1bc3624e756533c9d16794402c29d71321 (diff)
downloadsamba-2d05704d0e4b553d881f4e2563b2e71a9e1457da.tar.gz
samba-2d05704d0e4b553d881f4e2563b2e71a9e1457da.tar.bz2
samba-2d05704d0e4b553d881f4e2563b2e71a9e1457da.zip
fix irix compile errors - cannot initialize array in declaration statement
with non-const values - strsep not defined (This used to be commit a5c59b2cd10016ecbd931531602ad1cb3660bbf9)
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ldap.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index 2672489482..f0c4ad9040 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -826,7 +826,11 @@ static ADS_STATUS ads_modlist_add(TALLOC_CTX *ctx, ADS_MODLIST *mods,
ADS_STATUS ads_mod_str(TALLOC_CTX *ctx, ADS_MODLIST *mods,
const char *name, const char *val)
{
- const char *values[2] = {val, NULL};
+ const char *values[2];
+
+ values[0] = val;
+ values[1] = NULL;
+
if (!val)
return ads_modlist_add(ctx, mods, LDAP_MOD_DELETE, name, NULL);
return ads_modlist_add(ctx, mods, LDAP_MOD_REPLACE, name,
@@ -861,7 +865,10 @@ ADS_STATUS ads_mod_strlist(TALLOC_CTX *ctx, ADS_MODLIST *mods,
static ADS_STATUS ads_mod_ber(TALLOC_CTX *ctx, ADS_MODLIST *mods,
const char *name, const struct berval *val)
{
- const struct berval *values[2] = {val, NULL};
+ const struct berval *values[2];
+
+ values[0] = val;
+ values[1] = NULL;
if (!val)
return ads_modlist_add(ctx, mods, LDAP_MOD_DELETE, name, NULL);
return ads_modlist_add(ctx, mods, LDAP_MOD_REPLACE|LDAP_MOD_BVALUES,