From 071e14f9b04a4c552d1bcb5fc390d0dd5d479cf3 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 21 May 2011 23:14:49 +0200 Subject: [PATCH] Reacted on -Wextra -Wno-unused-parameter warnings of gcc for joliet.c --- libisofs/joliet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libisofs/joliet.c b/libisofs/joliet.c index 3d03768..160adba 100644 --- a/libisofs/joliet.c +++ b/libisofs/joliet.c @@ -69,7 +69,7 @@ void joliet_node_free(JolietNode *node) return; } if (node->type == JOLIET_DIR) { - int i; + size_t i; for (i = 0; i < node->info.dir->nchildren; i++) { joliet_node_free(node->info.dir->children[i]); } @@ -446,7 +446,7 @@ int mangle_single_dir(Ecma119Image *t, JolietNode *dir) max = maxchar + 1 - digits; } name = full_name; - if (max < ucslen(name)) { + if ((size_t) max < ucslen(name)) { name[max] = 0; } /* let ext be an empty string */