[libgsystem] fileutil: Fix -Wshadow warning with "index"
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgsystem] fileutil: Fix -Wshadow warning with "index"
- Date: Mon, 26 Aug 2013 16:34:40 +0000 (UTC)
commit 033511a303748b2ca7c751f0f132cf9ec778d42e
Author: Colin Walters <walters verbum org>
Date: Mon Aug 26 12:29:51 2013 -0400
fileutil: Fix -Wshadow warning with "index"
Reported-by: Pavel Šimerda <psimerda redhat com>
gsystem-file-utils.c | 8 ++++----
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 ("");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]