summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2002-03-04 01:07:02 +0000
committerHerb Lewis <herb@samba.org>2002-03-04 01:07:02 +0000
commit23e6fc25e2ed11d09be127dd40f0f05fa4a94f3a (patch)
tree81fd61276f294a64d59e49308e4df0738f55403a /source3
parent1315c8c4cf1b13926d8d4cef76fdd98654683ac9 (diff)
downloadsamba-23e6fc25e2ed11d09be127dd40f0f05fa4a94f3a.tar.gz
samba-23e6fc25e2ed11d09be127dd40f0f05fa4a94f3a.tar.bz2
samba-23e6fc25e2ed11d09be127dd40f0f05fa4a94f3a.zip
fix for IRIX compile error
(This used to be commit 2d620909f9def17dacf2af997a32d596f4dbd827)
Diffstat (limited to 'source3')
-rw-r--r--source3/libads/ldap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index 763f1bc354..ef1902960f 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -359,9 +359,10 @@ ADS_STATUS ads_gen_mod(ADS_STRUCT *ads, const char *mod_dn, ADS_MODLIST mods)
"1.2.840.113556.1.4.1413",
{0, NULL},
(char) 1};
- LDAPControl *controls[2] = {
- &PermitModify,
- NULL };
+ LDAPControl *controls[2];
+
+ controls[0] = &PermitModify;
+ controls[1] = NULL;
/* find the end of the list, marked by NULL or -1 */
for(i=0;(mods[i]!=0)&&(mods[i]!=(LDAPMod *) -1);i++);