Reacted on warnings of gcc about mixed sign comparison

This commit is contained in:
Thomas Schmitt 2011-06-06 10:51:52 +00:00
parent cf8e46ec32
commit 27997067c9
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2011.06.06.104404"
#define Cdrskin_timestamP "2011.06.06.105052"

View File

@ -273,7 +273,7 @@ static int next_enum_cXtYdZs2(burn_drive_enumerator_t *idx,
}
break;
}
if (strlen(entry->d_name) > volpath_size - 11)
if (strlen(entry->d_name) > (size_t) (volpath_size - 11))
continue;
ret = decode_btl_solaris(entry->d_name,
&busno, &tgtno, &lunno, 0);
@ -294,7 +294,7 @@ static int next_enum_cXtYdZs2(burn_drive_enumerator_t *idx,
continue;
if (cinfo.dki_ctype != DKC_CDROM)
continue;
if (adr_size <= strlen(volpath))
if (adr_size <= (int) strlen(volpath))
{ret = -1; goto ex;}
strcpy(adr, volpath);
{ret = 1; goto ex;}