From: Philippe Mathieu-Daudé Date: Thu, 5 Jul 2018 15:58:08 +0000 (-0300) Subject: tests/bios-tables-test: Remove an useless cast X-Git-Tag: v3.1.0-rc0~23^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cc80b01a5494344e29a4f41f0b684ed49c004e6d;p=thirdparty%2Fqemu.git tests/bios-tables-test: Remove an useless cast Patch created mechanically by rerunning: $ spatch --sp-file scripts/coccinelle/typecast.cocci \ --macro-file scripts/cocci-macro-file.h \ --dir . --in-place Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Markus Armbruster Acked-by: Michael S. Tsirkin Message-Id: <20180705155811.20366-5-f4bug@amsat.org> Signed-off-by: Laurent Vivier --- diff --git a/tests/bios-tables-test.c b/tests/bios-tables-test.c index af4b1fb6bd7..02e77ec811b 100644 --- a/tests/bios-tables-test.c +++ b/tests/bios-tables-test.c @@ -319,7 +319,7 @@ static bool load_asl(GArray *sdts, AcpiSdtTable *sdt) ret = g_spawn_command_line_sync(command_line->str, &out, &out_err, NULL, &error); g_assert_no_error(error); if (ret) { - ret = g_file_get_contents(sdt->asl_file, (gchar **)&sdt->asl, + ret = g_file_get_contents(sdt->asl_file, &sdt->asl, &sdt->asl_len, &error); g_assert(ret); g_assert_no_error(error);