[PATCH] Avoid "comparison between signed and unsigned" warning fro=

Colin Watson cjwatson at ubuntu.com
Thu May 29 20:27:13 UTC 2008


m gcc.

* libparted/fs/fat/traverse.c (fat_dir_entry_get_name): Change
type of index from int to size_t.
---
 libparted/fs/fat/traverse.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libparted/fs/fat/traverse.c b/libparted/fs/fat/traverse.c
index d3f0d35..be5efe9 100644
--- a/libparted/fs/fat/traverse.c
+++ b/libparted/fs/fat/traverse.c
@@ -341,7 +341,7 @@ fat_dir_entry_has_first_cluster (FatDirEntry* dir_entry=
, PedFileSystem* fs)
 */
 void
 fat_dir_entry_get_name (const FatDirEntry *dir_entry, char *result) {
-	int     i;
+	size_t i;
 	const char *src;
 	const char *ext;

--
1.5.6.rc0.30.g51263



More information about the parted-devel mailing list