Return const char

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2017-01-26 22:09:52 +01:00
parent 0263a7fa84
commit b64b7132a2
2 changed files with 2 additions and 2 deletions

View File

@ -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) zathura_plugin_get_name(zathura_plugin_t* plugin)
{ {
if (plugin != NULL) { if (plugin != NULL) {

View File

@ -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); girara_list_t* plugins = zathura_plugin_manager_get_plugins(zathura->plugins.manager);
if (plugins != NULL) { if (plugins != NULL) {
GIRARA_LIST_FOREACH(plugins, zathura_plugin_t*, iter, plugin) { 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); zathura_plugin_version_t version = zathura_plugin_get_version(plugin);
g_string_append_printf(string, format, g_string_append_printf(string, format,
(name == NULL) ? "-" : name, (name == NULL) ? "-" : name,