mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
C89 standard fixes, based on feedback from IRIX port
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user