1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +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:
Stefan Metzmacher 2014-10-29 11:52:37 +01:00 committed by Jeremy Allison
parent e27a23e6aa
commit edc6a89398

View File

@ -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;
}