Reacted on -Wextra -Wno-unused-parameter warnings of gcc for joliet.c

This commit is contained in:
Thomas Schmitt 2011-05-21 23:14:49 +02:00
parent b08d6271ab
commit 071e14f9b0
1 changed files with 2 additions and 2 deletions

View File

@ -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 */