diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-19 23:27:42 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:52:05 +0100 |
commit | 3e75f222bcdf114238cc4f2bcc61332dc059135f (patch) | |
tree | 9b1d7c25483c2819eb34e185459537b6a065e772 /source4/lib/ldb | |
parent | c2fffa8335ac68ff70de52f9fc80fb49e5d6d686 (diff) | |
download | samba-3e75f222bcdf114238cc4f2bcc61332dc059135f.tar.gz samba-3e75f222bcdf114238cc4f2bcc61332dc059135f.tar.bz2 samba-3e75f222bcdf114238cc4f2bcc61332dc059135f.zip |
r26539: Remove unnecessary statics.
(This used to be commit e53e79eebef3ece6978f0a2b4a1ee0a0814bb5d2)
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r-- | source4/lib/ldb/common/ldb.c | 2 | ||||
-rw-r--r-- | source4/lib/ldb/ldb_map/ldb_map.c | 6 | ||||
-rw-r--r-- | source4/lib/ldb/modules/paged_searches.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index 87f791cb38..ab4abe6701 100644 --- a/source4/lib/ldb/common/ldb.c +++ b/source4/lib/ldb/common/ldb.c @@ -162,7 +162,7 @@ void ldb_set_default_dns(struct ldb_context *ldb) int ret; struct ldb_result *res; struct ldb_dn *tmp_dn=NULL; - static const char *attrs[] = { + const char *attrs[] = { "rootDomainNamingContext", "configurationNamingContext", "schemaNamingContext", diff --git a/source4/lib/ldb/ldb_map/ldb_map.c b/source4/lib/ldb/ldb_map/ldb_map.c index 39df427c2c..87f5f25392 100644 --- a/source4/lib/ldb/ldb_map/ldb_map.c +++ b/source4/lib/ldb/ldb_map/ldb_map.c @@ -867,7 +867,7 @@ static int map_objectclass_convert_operator(struct ldb_module *module, void *mem struct ldb_parse_tree **new, const struct ldb_parse_tree *tree) { - static const struct ldb_map_attribute objectclass_map = { + const struct ldb_map_attribute objectclass_map = { .local_name = "objectClass", .type = MAP_CONVERT, .u = { @@ -956,7 +956,7 @@ struct ldb_request *map_search_self_req(struct map_context *ac, struct ldb_dn *d /* attrs[] is returned from this function in * ac->search_req->op.search.attrs, so it must be static, as * otherwise the compiler can put it on the stack */ - static const char * const attrs[] = { IS_MAPPED, NULL }; + const char * const attrs[] = { IS_MAPPED, NULL }; struct ldb_parse_tree *tree; /* Limit search to records with 'IS_MAPPED' present */ @@ -1242,7 +1242,7 @@ static const struct ldb_map_attribute builtin_attribute_maps[] = { * base DNs in private data. */ static int map_init_dns(struct ldb_module *module, struct ldb_map_context *data, const char *name) { - static const char * const attrs[] = { MAP_DN_FROM, MAP_DN_TO, NULL }; + const char * const attrs[] = { MAP_DN_FROM, MAP_DN_TO, NULL }; struct ldb_dn *dn; struct ldb_message *msg; struct ldb_result *res; diff --git a/source4/lib/ldb/modules/paged_searches.c b/source4/lib/ldb/modules/paged_searches.c index 749858b49b..69ce219362 100644 --- a/source4/lib/ldb/modules/paged_searches.c +++ b/source4/lib/ldb/modules/paged_searches.c @@ -407,7 +407,7 @@ static int check_supported_paged(struct ldb_context *ldb, void *context, static int ps_init(struct ldb_module *module) { - static const char *attrs[] = { "supportedControl", NULL }; + const char *attrs[] = { "supportedControl", NULL }; struct private_data *data; int ret; struct ldb_request *req; |