[xiph-cvs] cvs commit: vorbis-tools/vorbiscomment vcedit.c
Michael Smith
msmith at xiph.org
Sat Feb 17 03:45:03 PST 2001
msmith 01/02/17 03:45:03
Modified: vorbiscomment vcedit.c
Log:
Minor fixes:
no newlines in error strings
cast some stuff to avoid compiler warnings.
Revision Changes Path
1.9 +12 -9 vorbis-tools/vorbiscomment/vcedit.c
Index: vcedit.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/vorbiscomment/vcedit.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- vcedit.c 2001/02/16 13:37:48 1.8
+++ vcedit.c 2001/02/17 11:45:02 1.9
@@ -6,7 +6,7 @@
*
* Comment editing backend, suitable for use by nice frontend interfaces.
*
- * last modified: $Id: vcedit.c,v 1.8 2001/02/16 13:37:48 msmith Exp $
+ * last modified: $Id: vcedit.c,v 1.9 2001/02/17 11:45:02 msmith Exp $
*/
#include <stdio.h>
@@ -227,9 +227,11 @@
while((result = ogg_stream_flush(&streamout, &ogout)))
{
- if(state->write(ogout.header,1,ogout.header_len, out) != ogout.header_len)
+ if(state->write(ogout.header,1,ogout.header_len, out) !=
+ (size_t) ogout.header_len)
goto cleanup;
- if(state->write(ogout.body,1,ogout.body_len, out) != ogout.body_len)
+ if(state->write(ogout.body,1,ogout.body_len, out) !=
+ (size_t) ogout.body_len)
goto cleanup;
}
@@ -261,10 +263,10 @@
if(result==0)break;
if(state->write(ogout.header,1,ogout.header_len,
- out) != ogout.header_len)
+ out) != (size_t) ogout.header_len)
goto cleanup;
if(state->write(ogout.body,1,ogout.body_len,
- out) != ogout.body_len)
+ out) != (size_t) ogout.body_len)
goto cleanup;
if(ogg_page_eos(&ogout)) eosout=1;
@@ -303,10 +305,10 @@
/* Don't bother going through the rest, we can just
* write the page out now */
if(state->write(ogout.header,1,ogout.header_len,
- out) != ogout.header_len)
+ out) != (size_t) ogout.header_len)
goto cleanup;
if(state->write(ogout.body,1,ogout.body_len, out) !=
- ogout.body_len)
+ (size_t) ogout.body_len)
goto cleanup;
}
}
@@ -331,8 +333,9 @@
vcedit_clear_internals(state);
if(!(eosin && eosout))
{
- state->lasterror = "Error writing stream to output.\n"
- "Output stream may be corrupted or truncated.";
+ state->lasterror =
+ "Error writing stream to output. "
+ "Output stream may be corrupted or truncated.";
return -1;
}
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list