[geany/geany] 8bbe58: Fix a compiler warning about const
Matthew Brush
git-noreply at xxxxx
Sat Apr 11 01:52:46 UTC 2015
Branch: refs/heads/master
Author: Matthew Brush <matt at geany.org>
Committer: Matthew Brush <matt at geany.org>
Date: Sat, 11 Apr 2015 01:52:46 UTC
Commit: 8bbe58cdf79b91aa1eb38d1ac933fafdf280dc6a
https://github.com/geany/geany/commit/8bbe58cdf79b91aa1eb38d1ac933fafdf280dc6a
Log Message:
-----------
Fix a compiler warning about const
Modified Paths:
--------------
src/utils.c
Modified: src/utils.c
8 lines changed, 4 insertions(+), 4 deletions(-)
===================================================================
@@ -2185,7 +2185,7 @@ const gchar *utils_resource_dir(GeanyResourceDirType type)
void utils_start_new_geany_instance(const gchar *doc_path)
{
- gchar **argv;
+ const gchar *const *argv;
const gchar *command = is_osx_bundle() ? "open" : "geany";
gchar *exec_path = g_find_program_in_path(command);
@@ -2195,16 +2195,16 @@ void utils_start_new_geany_instance(const gchar *doc_path)
if (is_osx_bundle())
{
- gchar *osx_argv[] = {exec_path, "-n", "-a", "Geany", doc_path, NULL};
+ const gchar *const osx_argv[] = {exec_path, "-n", "-a", "Geany", doc_path, NULL};
argv = osx_argv;
}
else
{
- gchar *unix_argv[] = {exec_path, "-i", doc_path, NULL};
+ const gchar *const unix_argv[] = {exec_path, "-i", doc_path, NULL};
argv = unix_argv;
}
- if (!utils_spawn_async(NULL, argv, NULL, 0, NULL, NULL, NULL, &err))
+ if (!utils_spawn_async(NULL, (gchar**) argv, NULL, 0, NULL, NULL, NULL, &err))
{
g_printerr("Unable to open new window: %s", err->message);
g_error_free(err);
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list