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 <bvanassche@acm.org>
if (!init_random_map(td))
goto err;
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))
goto err;
if (o->pre_read && !pre_read_files(td))
rate_submit_exit(td);
if (o->exec_postrun)
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);
if (exitall_on_terminate || (o->exitall_error && td->error))
fio_terminate_threads(td->groupid, td->o.exit_what);