Reacted on -Wsign-compare warnings of gcc

This commit is contained in:
Thomas Schmitt 2011-05-19 13:39:17 +00:00
parent ac85550dac
commit ade292eb7c
2 changed files with 4 additions and 4 deletions

View File

@ -769,8 +769,8 @@ int Xorriso_option_setfacl_listi(struct XorrisO *xorriso, char *path, int flag)
/* Register ACL entry */
l= strlen(line);
if(wpt + l + 2 - buf > buf_size) {
if(buf_size + buf_add > xorriso->temp_mem_limit) {
if(wpt + l + 2 - buf > (int) buf_size) {
if((int) (buf_size + buf_add) > xorriso->temp_mem_limit) {
Sfile_scale((double) xorriso->temp_mem_limit, limit_text,5,1e4,1);
sprintf(xorriso->info_text,
"-setfacl_list: List entry for a single file exceeds -temp_mem_limit %s",
@ -1015,7 +1015,7 @@ int Xorriso_option_setfattr_listi(struct XorrisO *xorriso, char *path,
ret= 1; goto ex;
}
mem_used+= strlen(line) + 1;
if(mem_used > xorriso->temp_mem_limit) {
if(mem_used > (size_t) xorriso->temp_mem_limit) {
Sfile_scale((double) xorriso->temp_mem_limit, limit_text,5,1e4,1);
sprintf(xorriso->info_text,
"-setfattr_list: List entry for a single file exceeds -temp_mem_limit %s",

View File

@ -1 +1 @@
#define Xorriso_timestamP "2011.05.19.133840"
#define Xorriso_timestamP "2011.05.19.133940"