mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r14436: mixing of boolean expressions and integers isn't allowed
This commit is contained in:
parent
40e5bfdb0f
commit
6f7d09262d
@ -543,7 +543,7 @@ static const char **available_local_attributes(struct ldb_module *module, const
|
||||
ret[0] = NULL;
|
||||
|
||||
for (i = 0; privdat->attribute_maps[i].local_name; i++) {
|
||||
int avail = 0;
|
||||
BOOL avail = False;
|
||||
const struct ldb_map_attribute *attr = &privdat->attribute_maps[i];
|
||||
|
||||
/* If all remote attributes for this attribute are present, add the
|
||||
@ -561,9 +561,9 @@ static const char **available_local_attributes(struct ldb_module *module, const
|
||||
break;
|
||||
|
||||
case MAP_GENERATE:
|
||||
avail = 1;
|
||||
avail = True;
|
||||
for (j = 0; attr->u.generate.remote_names[j]; j++) {
|
||||
avail &= (ldb_msg_find_ldb_val(msg, attr->u.generate.remote_names[j]) != NULL);
|
||||
avail &= (BOOL)(ldb_msg_find_ldb_val(msg, attr->u.generate.remote_names[j]) != NULL);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user