r9672: Fix build for compilers that don't like undefined-length arrays at the end...
[sfrench/samba-autobuild/.git] / source / lib / ldb / ldb_map / ldb_map.h
index da3198429df488650cf4c8e4336fab5aefafea61..bdeafc827a829e3df5d3a9a888b8074cffed28c6 100644 (file)
@@ -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__ */