Reacted on -Wextra -Wno-unused-parameter warnings of gcc for

libisofs/aaip-os-freebsd.c
This commit is contained in:
Thomas Schmitt 2011-06-02 10:28:52 +02:00
parent d361186bca
commit 023e413624

View File

@ -229,7 +229,7 @@ ex:;
if(ret <= 0 || (flag & (1 << 15))) {
if(*names != NULL) {
for(i= 0; i < *num_attrs; i++)
for(i= 0; i < (ssize_t) *num_attrs; i++)
free((*names)[i]);
free(*names);
}
@ -238,7 +238,7 @@ ex:;
free(*value_lengths);
*value_lengths= NULL;
if(*values != NULL) {
for(i= 0; i < *num_attrs; i++)
for(i= 0; i < (ssize_t) *num_attrs; i++)
free((*values)[i]);
free(*values);
}