mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
lib/ldb: fix compiler warnings in ldb_modules_list_from_string()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
e27a23e6aa
commit
edc6a89398
@ -87,7 +87,7 @@ const char **ldb_modules_list_from_string(struct ldb_context *ldb, TALLOC_CTX *m
|
||||
|
||||
if (modstr[0] == '\0') {
|
||||
modules[0] = NULL;
|
||||
m = (const char **)modules;
|
||||
m = discard_const_p(const char *, modules);
|
||||
return m;
|
||||
}
|
||||
|
||||
@ -110,7 +110,7 @@ const char **ldb_modules_list_from_string(struct ldb_context *ldb, TALLOC_CTX *m
|
||||
|
||||
modules[i + 1] = NULL;
|
||||
|
||||
m = (const char **)modules;
|
||||
m = discard_const_p(const char *, modules);
|
||||
|
||||
return m;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user