SF.net SVN: geany-plugins:[2163] trunk/geany-plugins/geanyvc/src
frlan at users.sourceforge.net
frlan at xxxxx
Wed Aug 24 05:51:18 UTC 2011
Revision: 2163
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2163&view=rev
Author: frlan
Date: 2011-08-24 05:51:17 +0000 (Wed, 24 Aug 2011)
Log Message:
-----------
GeanyVC: Fix a couple compiler warnings
Modified Paths:
--------------
trunk/geany-plugins/geanyvc/src/externdiff.c
trunk/geany-plugins/geanyvc/src/vc_bzr.c
trunk/geany-plugins/geanyvc/src/vc_git.c
trunk/geany-plugins/geanyvc/src/vc_hg.c
trunk/geany-plugins/geanyvc/src/vc_svk.c
trunk/geany-plugins/geanyvc/src/vc_svn.c
Modified: trunk/geany-plugins/geanyvc/src/externdiff.c
===================================================================
--- trunk/geany-plugins/geanyvc/src/externdiff.c 2011-08-22 06:17:15 UTC (rev 2162)
+++ trunk/geany-plugins/geanyvc/src/externdiff.c 2011-08-24 05:51:17 UTC (rev 2163)
@@ -38,7 +38,7 @@
EXTERNAL_DIFF_COUNT
};
-static gchar *viewers[EXTERNAL_DIFF_COUNT] = { "meld", "kompare", "kdiff3", "diffuse", "tkdiff" };
+static const gchar *viewers[EXTERNAL_DIFF_COUNT] = { "meld", "kompare", "kdiff3", "diffuse", "tkdiff" };
static gchar *extern_diff_viewer = NULL;
const gchar *
Modified: trunk/geany-plugins/geanyvc/src/vc_bzr.c
===================================================================
--- trunk/geany-plugins/geanyvc/src/vc_bzr.c 2011-08-22 06:17:15 UTC (rev 2162)
+++ trunk/geany-plugins/geanyvc/src/vc_bzr.c 2011-08-24 05:51:17 UTC (rev 2163)
@@ -119,7 +119,7 @@
in_vc_bzr(const gchar * filename)
{
gint exit_code;
- gchar *argv[] = { "bzr", "log", NULL, NULL };
+ const gchar *argv[] = { "bzr", "log", NULL, NULL };
gchar *dir;
gchar *base_name;
gboolean ret = FALSE;
Modified: trunk/geany-plugins/geanyvc/src/vc_git.c
===================================================================
--- trunk/geany-plugins/geanyvc/src/vc_git.c 2011-08-22 06:17:15 UTC (rev 2162)
+++ trunk/geany-plugins/geanyvc/src/vc_git.c 2011-08-24 05:51:17 UTC (rev 2163)
@@ -182,7 +182,7 @@
in_vc_git(const gchar * filename)
{
gint exit_code;
- gchar *argv[] = { "git", "ls-files", "--", NULL, NULL };
+ const gchar *argv[] = { "git", "ls-files", "--", NULL, NULL };
gchar *dir;
gchar *base_name;
gboolean ret = FALSE;
@@ -253,8 +253,8 @@
get_commit_files_git(const gchar * file)
{
gint exit_code;
- gchar *argv[] = { "git", "status", NULL };
- gchar *env[] = { "PAGES=cat", NULL };
+ const gchar *argv[] = { "git", "status", NULL };
+ const gchar *env[] = { "PAGES=cat", NULL };
gchar *std_out = NULL;
gchar *base_dir = find_subdir_path(file, ".git");
GSList *ret = NULL;
Modified: trunk/geany-plugins/geanyvc/src/vc_hg.c
===================================================================
--- trunk/geany-plugins/geanyvc/src/vc_hg.c 2011-08-22 06:17:15 UTC (rev 2162)
+++ trunk/geany-plugins/geanyvc/src/vc_hg.c 2011-08-24 05:51:17 UTC (rev 2163)
@@ -118,7 +118,7 @@
in_vc_hg(const gchar * filename)
{
gint exit_code;
- gchar *argv[] = { "hg", "status", "-mac", NULL, NULL };
+ const gchar *argv[] = { "hg", "status", "-mac", NULL, NULL };
gchar *dir;
gchar *base_name;
gboolean ret = FALSE;
Modified: trunk/geany-plugins/geanyvc/src/vc_svk.c
===================================================================
--- trunk/geany-plugins/geanyvc/src/vc_svk.c 2011-08-22 06:17:15 UTC (rev 2162)
+++ trunk/geany-plugins/geanyvc/src/vc_svk.c 2011-08-24 05:51:17 UTC (rev 2163)
@@ -120,7 +120,7 @@
in_vc_svk(const gchar * filename)
{
gint exit_code;
- gchar *argv[] = { "svk", "info", NULL, NULL };
+ const gchar *argv[] = { "svk", "info", NULL, NULL };
gchar *dir;
gchar *base_name = NULL;
gboolean ret = FALSE;
Modified: trunk/geany-plugins/geanyvc/src/vc_svn.c
===================================================================
--- trunk/geany-plugins/geanyvc/src/vc_svn.c 2011-08-22 06:17:15 UTC (rev 2162)
+++ trunk/geany-plugins/geanyvc/src/vc_svn.c 2011-08-24 05:51:17 UTC (rev 2163)
@@ -167,7 +167,7 @@
in_vc_svn(const gchar * filename)
{
gint exit_code;
- gchar *argv[] = { "svn", "info", "--non-interactive", NULL, NULL };
+ const gchar *argv[] = { "svn", "info", "--non-interactive", NULL, NULL };
gchar *dir;
gchar *base_name;
gboolean ret = FALSE;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Plugins-Commits
mailing list