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

@@ -179,10 +179,10 @@ FLAC__bool set_vc_field(const char *filename, FLAC__StreamMetadata *block, const
FLAC__ASSERT(0 != needs_write);
if(raw) {
entry.entry = field->field;
entry.entry = (FLAC__byte *)field->field;
}
else if(utf8_encode(field->field, &converted) >= 0) {
entry.entry = converted;
entry.entry = (FLAC__byte *)converted;
needs_free = true;
}
else {
@@ -190,7 +190,7 @@ FLAC__bool set_vc_field(const char *filename, FLAC__StreamMetadata *block, const
return false;
}
entry.length = strlen(entry.entry);
entry.length = strlen((const char *)entry.entry);
if(!FLAC__metadata_object_vorbiscomment_insert_comment(block, block->data.vorbis_comment.num_comments, entry, /*copy=*/true)) {
if(needs_free)