tools: clean up patch from merge request !36.

Commit 283ec1da0f previously pushed had some coding style bugs, which
unfortunately couldn't be fixed before pushing because the platform
doesn't allow it and the original contributor is not available lately.
Let's fix these.
This commit is contained in:
Jehan 2019-09-16 09:53:24 +02:00
parent 283ec1da0f
commit 8fa7b5bc74
1 changed files with 23 additions and 19 deletions

View File

@ -656,7 +656,8 @@ get_user_plugin_dir (void)
}
static gchar *
get_plugin_dir (const gchar *base_dir, const gchar *what)
get_plugin_dir (const gchar *base_dir,
const gchar *what)
{
gchar *separator, *dot, *plugin_name, *plugin_dir;
gchar *tmp = g_strdup (what);
@ -665,6 +666,7 @@ get_plugin_dir (const gchar *base_dir, const gchar *what)
#ifdef G_OS_WIN32
{
gchar *alt_separator = strrchr (tmp, '/');
if (alt_separator != NULL &&
(separator == NULL || alt_separator > separator))
{
@ -807,6 +809,7 @@ do_install_bin_2 (const gchar *dir,
gchar *quoted_dir;
gchar *dest_dir = g_strconcat (dir, G_DIR_SEPARATOR_S, NULL);
g_mkdir_with_parents (dest_dir,
S_IRUSR | S_IXUSR | S_IWUSR |
S_IRGRP | S_IXGRP |
@ -852,6 +855,7 @@ do_uninstall (const gchar *dir)
{
gchar *cmd;
gchar *quoted_src;
quoted_src = g_shell_quote (dir);
cmd = g_strconcat (REMOVE_DIR, " ", quoted_src, NULL);