summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-08-26 12:29:51 -0400
committerColin Walters <walters@verbum.org>2013-08-26 12:29:51 -0400
commit033511a303748b2ca7c751f0f132cf9ec778d42e (patch)
tree7d1c41bc635d1187f00f187a5e7a11200fdfa5e2
parent592003ad7314c71230cfa5e39ccdf8f6c16eebc7 (diff)
downloadlibgsystem-033511a303748b2ca7c751f0f132cf9ec778d42e.tar.gz
fileutil: Fix -Wshadow warning with "index"
Reported-by: Pavel Šimerda <psimerda@redhat.com>
-rw-r--r--gsystem-file-utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gsystem-file-utils.c b/gsystem-file-utils.c
index c734d2d..5ed6ed1 100644
--- a/gsystem-file-utils.c
+++ b/gsystem-file-utils.c
@@ -1174,7 +1174,7 @@ gs_file_get_relpath (GFile *one,
gchar *one_path, *one_suffix;
gchar *two_path, *two_suffix;
GString *path;
- int index;
+ int i;
simple_path = g_file_get_relative_path (one, two);
if (simple_path)
@@ -1183,9 +1183,9 @@ gs_file_get_relpath (GFile *one,
one_path = g_file_get_path (one);
two_path = g_file_get_path (two);
- index = path_common_directory (one_path, two_path);
- one_suffix = one_path + index;
- two_suffix = two_path + index;
+ i = path_common_directory (one_path, two_path);
+ one_suffix = one_path + i;
+ two_suffix = two_path + i;
path = g_string_new ("");