C89 standard fixes, based on feedback from IRIX port

This commit is contained in:
Josh Coalson
2003-05-20 00:01:49 +00:00
parent 1e70455a92
commit 27e13541b2
11 changed files with 34 additions and 26 deletions

View File

@@ -88,7 +88,7 @@ char* FLAC_plugin__charset_convert_string (const char *string, char *from, char
outptr = out;
retry:
if (iconv(cd, &input, &length, &outptr, &outleft) == -1)
if (iconv(cd, (char**)&input, &length, &outptr, &outleft) == -1)
{
int used;
switch (errno)

View File

@@ -32,7 +32,7 @@ static int local__vcentry_matches(const char *field_name, const FLAC__StreamMeta
#endif
const FLAC__byte *eq = memchr(entry->entry, '=', entry->length);
const unsigned field_name_length = strlen(field_name);
return (0 != eq && (unsigned)(eq-entry->entry) == field_name_length && 0 == FLAC__STRNCASECMP(field_name, entry->entry, field_name_length));
return (0 != eq && (unsigned)(eq-entry->entry) == field_name_length && 0 == FLAC__STRNCASECMP(field_name, (const char *)entry->entry, field_name_length));
}
static void local__vcentry_parse_value(const FLAC__StreamMetadata_VorbisComment_Entry *entry, char **dest)
@@ -74,7 +74,7 @@ static void local__vc_change_field(FLAC__StreamMetadata *block, const char *name
sprintf(s, "%s=%s", name, value);
entry.length = strlen(s);
entry.entry = s;
entry.entry = (FLAC__byte *)s;
if(l == -1)
FLAC__metadata_object_vorbiscomment_insert_comment(block, block->data.vorbis_comment.num_comments, entry, /*copy=*/true);