Remove useless cast

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2018-02-08 21:16:06 +01:00
parent 821dc79117
commit eb5c7079d2

View file

@ -190,8 +190,8 @@ zathura_plugin_manager_load(zathura_plugin_manager_t* plugin_manager)
continue;
}
char* name = NULL;
while ((name = (char*) g_dir_read_name(dir)) != NULL) {
const char* name = NULL;
while ((name = g_dir_read_name(dir)) != NULL) {
load_plugin(plugin_manager, plugindir, name);
}
g_dir_close(dir);