Commit b64b7132 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Return const char

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 0263a7fa
......@@ -409,7 +409,7 @@ zathura_plugin_set_name(zathura_plugin_t* plugin, const char* name)
}
}
char*
const char*
zathura_plugin_get_name(zathura_plugin_t* plugin)
{
if (plugin != NULL) {
......
......@@ -200,7 +200,7 @@ zathura_get_version_string(zathura_t* zathura, bool markup)
girara_list_t* plugins = zathura_plugin_manager_get_plugins(zathura->plugins.manager);
if (plugins != NULL) {
GIRARA_LIST_FOREACH(plugins, zathura_plugin_t*, iter, plugin) {
char* name = zathura_plugin_get_name(plugin);
const char* name = zathura_plugin_get_name(plugin);
zathura_plugin_version_t version = zathura_plugin_get_version(plugin);
g_string_append_printf(string, format,
(name == NULL) ? "-" : name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment