From 05f26898f3008bf35246f469c6b5060924f7024f Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 21 May 2011 23:16:35 +0200 Subject: [PATCH] Reacted on -Wextra -Wno-unused-parameter warnings of gcc for node.c --- libisofs/node.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libisofs/node.c b/libisofs/node.c index 53c1c2c..a3f2542 100644 --- a/libisofs/node.c +++ b/libisofs/node.c @@ -1573,7 +1573,7 @@ int iso_aa_get_attrs(unsigned char *aa_string, size_t *num_attrs, goto ex; } - if (rpt - aa_string != len) { + if ((size_t) (rpt - aa_string) != len) { /* aaip_decode_attrs() returns 2 but still bytes are left */ ret = ISO_AAIP_BAD_AASTRING; goto ex; @@ -1615,7 +1615,7 @@ int iso_aa_lookup_attr(unsigned char *aa_string, char *name, ret = iso_aa_get_attrs(aa_string, &num_attrs, &names, &value_lengths, &values, 0); - for (i = 0; i < num_attrs; i++) { + for (i = 0; i < (int) num_attrs; i++) { if (strcmp(names[i], name)) continue; *value_length = value_lengths[i]; @@ -2850,7 +2850,7 @@ int iso_file_get_md5(IsoImage *image, IsoFile *file, char md5[16], int flag) ret = 0; goto ex; } - for (i = 0; i < value_len; i++) + for (i = 0; i < (int) value_len; i++) idx = (idx << 8) | ((unsigned char *) value)[i]; if (idx == 0 || idx > image->checksum_idx_count - 1) { /* (last index is not MD5 of a file) */