s4:tests/iconv - Fix a warning
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Mon, 7 Sep 2009 10:38:44 +0000 (12:38 +0200)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Mon, 7 Sep 2009 10:38:44 +0000 (12:38 +0200)
lib/util/charset/tests/iconv.c

index 0f09ac85070d127d97697495105039f428e65781..3e2546dc01b65cdc60f8fa74b3e52750dc3081f4 100644 (file)
@@ -441,7 +441,8 @@ static bool test_string2key(struct torture_context *tctx)
                torture_fail(tctx, "Failed to convert fixed buffer to UTF8\n");
        }
 
-       torture_assert(tctx, strcmp(correct, out1) == 0, "conversion gave incorrect result\n");
+       torture_assert(tctx, strcmp(correct, (const char *) out1) == 0,
+               "conversion gave incorrect result\n");
 
        talloc_free(mem_ctx);