mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +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') {
|
if (modstr[0] == '\0') {
|
||||||
modules[0] = NULL;
|
modules[0] = NULL;
|
||||||
m = (const char **)modules;
|
m = discard_const_p(const char *, modules);
|
||||||
return m;
|
return m;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ const char **ldb_modules_list_from_string(struct ldb_context *ldb, TALLOC_CTX *m
|
|||||||
|
|
||||||
modules[i + 1] = NULL;
|
modules[i + 1] = NULL;
|
||||||
|
|
||||||
m = (const char **)modules;
|
m = discard_const_p(const char *, modules);
|
||||||
|
|
||||||
return m;
|
return m;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user