Silenced compiler warnings about signedness

This commit is contained in:
Thomas Schmitt 2011-06-22 09:32:25 +00:00
parent a4dfb19e14
commit 0f597cb904
2 changed files with 6 additions and 6 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2011.06.19.203515" #define Cdrskin_timestamP "2011.06.22.093127"

View File

@ -259,7 +259,7 @@ try_next:;
} }
#endif #endif
if (strlen(*(idx->pos)) >= adr_size) if ((ssize_t) strlen(*(idx->pos)) >= adr_size)
return -1; return -1;
strcpy(adr, *(idx->pos)); strcpy(adr, *(idx->pos));
(idx->pos)++; (idx->pos)++;
@ -440,7 +440,7 @@ int sg_give_next_adr(burn_drive_enumerator_t *idx,
ret = sg_give_next_adr_raw(idx, adr, adr_size, initialize); ret = sg_give_next_adr_raw(idx, adr, adr_size, initialize);
if (ret <= 0) if (ret <= 0)
goto ex; goto ex;
if (strlen(adr) >= path_size) if ((ssize_t) strlen(adr) >= path_size)
goto ex; goto ex;
#ifdef Libburn_is_on_solariS #ifdef Libburn_is_on_solariS
@ -453,7 +453,7 @@ int sg_give_next_adr(burn_drive_enumerator_t *idx,
#endif /* Libburn_is_on_solariS */ #endif /* Libburn_is_on_solariS */
ret = burn_drive_resolve_link(adr, path, &recursion_count, 2); ret = burn_drive_resolve_link(adr, path, &recursion_count, 2);
if(ret > 0 && strlen(path) < adr_size) if(ret > 0 && (ssize_t) strlen(path) < adr_size)
strcpy(path, adr); strcpy(path, adr);
ret = (ret >= 0); ret = (ret >= 0);
ex: ex:
@ -667,8 +667,8 @@ int sg_issue_command(struct burn_drive *d, struct command *c)
sense_valid = mmc_last_cmd_sense(p_cdio, &sense_pt); sense_valid = mmc_last_cmd_sense(p_cdio, &sense_pt);
if (sense_valid >= 18) { if (sense_valid >= 18) {
memcpy(c->sense, sense_pt, memcpy(c->sense, sense_pt,
sense_valid >= sizeof(c->sense) ? (size_t) sense_valid >= sizeof(c->sense) ?
sizeof(c->sense) : sense_valid ); sizeof(c->sense) : (size_t) sense_valid );
spc_decode_sense(c->sense, 0, &key, &asc, &ascq); spc_decode_sense(c->sense, 0, &key, &asc, &ascq);
} else } else
key = asc = ascq = 0; key = asc = ascq = 0;