From 033511a303748b2ca7c751f0f132cf9ec778d42e Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 26 Aug 2013 12:29:51 -0400 Subject: fileutil: Fix -Wshadow warning with "index" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported-by: Pavel Šimerda --- gsystem-file-utils.c | 8 ++++---- 1 file 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 (""); -- cgit v1.2.1