From 0518f09fff6004b2c42856cc3700c4d20e62470f Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 4 Sep 2020 16:06:07 -0700 Subject: [PATCH] backend: Remove two superfluous casts Casting the type of a string constant to (const char *) is not necessary. These casts were introduced by commit ce4864950d2c ("backend: Logging exec_{pre|post}run"). Signed-off-by: Bart Van Assche --- backend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend.c b/backend.c index 05453ae2..c7a027e7 100644 --- a/backend.c +++ b/backend.c @@ -1731,7 +1731,7 @@ static void *thread_main(void *data) if (!init_random_map(td)) goto err; - if (o->exec_prerun && exec_string(o, o->exec_prerun, (const char *)"prerun")) + if (o->exec_prerun && exec_string(o, o->exec_prerun, "prerun")) goto err; if (o->pre_read && !pre_read_files(td)) @@ -1890,7 +1890,7 @@ static void *thread_main(void *data) rate_submit_exit(td); if (o->exec_postrun) - exec_string(o, o->exec_postrun, (const char *)"postrun"); + exec_string(o, o->exec_postrun, "postrun"); if (exitall_on_terminate || (o->exitall_error && td->error)) fio_terminate_threads(td->groupid, td->o.exit_what); -- 2.25.1