diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-08-27 02:10:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:34:39 -0500 |
commit | 02779b745fa5caceecbb480f1949a6e44f5da972 (patch) | |
tree | 8b0979a0cad5f9e486bb7f44e6ec0e3b3f35d665 /source4/lib/ldb/ldb_map/ldb_map.h | |
parent | 7fd36b79ebaff8821b3786725510b0d428631a0a (diff) | |
download | samba-02779b745fa5caceecbb480f1949a6e44f5da972.tar.gz samba-02779b745fa5caceecbb480f1949a6e44f5da972.tar.bz2 samba-02779b745fa5caceecbb480f1949a6e44f5da972.zip |
r9672: Fix build for compilers that don't like undefined-length arrays at the end of structs...
(This used to be commit c2211df586337ff68bb805801959147065040c01)
Diffstat (limited to 'source4/lib/ldb/ldb_map/ldb_map.h')
-rw-r--r-- | source4/lib/ldb/ldb_map/ldb_map.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/source4/lib/ldb/ldb_map/ldb_map.h b/source4/lib/ldb/ldb_map/ldb_map.h index da3198429d..bdeafc827a 100644 --- a/source4/lib/ldb/ldb_map/ldb_map.h +++ b/source4/lib/ldb/ldb_map/ldb_map.h @@ -90,7 +90,8 @@ struct ldb_map_attribute /* Name(s) for this attribute on the remote server. This is an array since * one local attribute's data can be split up into several attributes * remotely */ - const char *remote_names[]; +#define LDB_MAP_MAX_REMOTE_NAMES 10 + const char *remote_names[LDB_MAP_MAX_REMOTE_NAMES]; } generate; } u; }; @@ -101,12 +102,4 @@ struct ldb_map_objectclass const char *remote_name; }; -/* Base ldb_map struct. Fill this in to create a mapping backend */ -struct ldb_map_mappings -{ - const char *name; - const struct ldb_map_attribute *attribute_maps[]; -}; - - #endif /* __LDB_MAP_H__ */ |