diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-02-26 20:16:26 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-04-02 09:03:42 +0200 |
commit | defe9aa675b0c36e970147f14a9f0299b9464e5d (patch) | |
tree | 95702514e5f6ed810e7d91f58cf78756d553278a /source3/lib | |
parent | fc95672bcb106290f688c6e437a37feb7d5189f5 (diff) | |
download | samba-defe9aa675b0c36e970147f14a9f0299b9464e5d.tar.gz samba-defe9aa675b0c36e970147f14a9f0299b9464e5d.tar.xz samba-defe9aa675b0c36e970147f14a9f0299b9464e5d.zip |
s3:lib/smbconf: fix const warnings in testsuite.c
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/smbconf/testsuite.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/lib/smbconf/testsuite.c b/source3/lib/smbconf/testsuite.c index 79083614eee..629ff427cd3 100644 --- a/source3/lib/smbconf/testsuite.c +++ b/source3/lib/smbconf/testsuite.c @@ -25,7 +25,8 @@ #include "lib/smbconf/smbconf_txt.h" static void print_strings(const char *prefix, - uint32_t num_strings, const char **strings) + uint32_t num_strings, + const char * const *strings) { uint32_t count; @@ -56,7 +57,7 @@ static bool test_get_includes(struct smbconf_ctx *ctx) printf("got %u includes%s\n", num_includes, (num_includes > 0) ? ":" : "."); - print_strings("", num_includes, (const char **)includes); + print_strings("", num_includes, (const char * const *)includes); printf("OK: get_includes\n"); ret = true; @@ -106,10 +107,11 @@ static bool test_set_get_includes(struct smbconf_ctx *ctx) for (count = 0; count < get_num_includes; count++) { if (!strequal(set_includes[count], get_includes[count])) { printf("expected: \n"); - print_strings("* ", set_num_includes, set_includes); + print_strings("* ", set_num_includes, + (const char * const *)set_includes); printf("got: \n"); print_strings("* ", get_num_includes, - (const char **)get_includes); + (const char * const *)get_includes); printf("FAIL: get_set_includes - data mismatch:\n"); goto done; } |