Silence compiler warnings (11/11).

svn path=/trunk/; revision=37833
This commit is contained in:
Dmitry Gorbachev 2008-12-03 17:37:58 +00:00
parent e1f79c3b49
commit 5bc250cc36
2 changed files with 5 additions and 5 deletions

View file

@ -568,11 +568,11 @@ void parse_filename_into_dirrecord ( const char* filename, PDIR_RECORD d, BOOL d
break;
}
if ( (t-d->name_on_cd) < sizeof(d->name_on_cd)-1 )
if ( (size_t)(t-d->name_on_cd) < sizeof(d->name_on_cd)-1 )
*t++ = check_for_punctuation(*s, filename);
else if (!joliet)
error_exit ("'%s' is not ISO-9660, aborting...", filename );
if ( (n-d->name) < sizeof(d->name)-1 )
if ( (size_t)(n-d->name) < sizeof(d->name)-1 )
*n++ = *s;
else if (!joliet)
error_exit ( "'%s' is not ISO-9660, aborting...", filename );
@ -587,7 +587,7 @@ void parse_filename_into_dirrecord ( const char* filename, PDIR_RECORD d, BOOL d
t = d->extension_on_cd;
while ( *s != 0 )
{
if ( (t-d->extension_on_cd) < (sizeof(d->extension_on_cd)-1) )
if ( (size_t)(t-d->extension_on_cd) < sizeof(d->extension_on_cd)-1 )
*t++ = check_for_punctuation(*s, filename);
else if (!joliet)
error_exit ( "'%s' is not ISO-9660, aborting...", filename );

View file

@ -59,7 +59,7 @@ static FILE *out;
static FILE *file_handle = NULL;
static char *file_buffer = NULL;
static unsigned int file_size = 0;
static int file_pointer = 0;
static unsigned int file_pointer = 0;
static char tagname[200];
static PAPI_INFO api_info_list = NULL;
@ -752,7 +752,7 @@ read_input_file(char *input_file)
PAPI_INFO api_info;
PAPI_INFO next_api_info;
char *buffer;
int size;
unsigned int size;
int len;
in = fopen(input_file, "rb");