Fix warnings.

This commit is contained in:
Steve Checkoway
2004-08-06 04:35:48 +00:00
parent 1a0e066c7d
commit d112119fd1
+2 -2
View File
@@ -49,7 +49,7 @@ static void init_destination( jpeg::j_compress_ptr cinfo )
static jpeg::boolean empty_output_buffer( jpeg::j_compress_ptr cinfo )
{
my_destination_mgr * dest = (my_destination_mgr *) cinfo->dest;
int nbytes = dest->f->Write( dest->buffer, OUTPUT_BUFFER_SIZE );
dest->f->Write( dest->buffer, OUTPUT_BUFFER_SIZE );
// XXX err
dest->pub.next_output_byte = dest->buffer;
dest->pub.free_in_buffer = OUTPUT_BUFFER_SIZE;
@@ -66,7 +66,7 @@ static void term_destination (jpeg::j_compress_ptr cinfo)
{
/* Write data remaining in the buffer */
my_destination_mgr *dest = (my_destination_mgr *) cinfo->dest;
int wrote = dest->f->Write( dest->buffer, OUTPUT_BUFFER_SIZE - dest->pub.free_in_buffer );
dest->f->Write( dest->buffer, OUTPUT_BUFFER_SIZE - dest->pub.free_in_buffer );
// XXX err
dest->pub.next_output_byte = dest->buffer;
dest->pub.free_in_buffer = OUTPUT_BUFFER_SIZE;