mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-03 05:18:24 +03:00
lzma: Port to C99 style
Just keeping up momentum.
This commit is contained in:
parent
722fc2d060
commit
27266f90d9
@ -169,7 +169,7 @@ _ostree_lzma_compressor_convert (GConverter *converter, const void *inbuf, gsize
|
||||
{
|
||||
res = lzma_easy_encoder (&self->lstream, 8, LZMA_CHECK_CRC64);
|
||||
if (res != LZMA_OK)
|
||||
goto out;
|
||||
return _ostree_lzma_return (res, error);
|
||||
self->initialized = TRUE;
|
||||
}
|
||||
|
||||
@ -187,13 +187,12 @@ _ostree_lzma_compressor_convert (GConverter *converter, const void *inbuf, gsize
|
||||
|
||||
res = lzma_code (&self->lstream, action);
|
||||
if (res != LZMA_OK && res != LZMA_STREAM_END)
|
||||
goto out;
|
||||
return _ostree_lzma_return (res, error);
|
||||
|
||||
*bytes_read = inbuf_size - self->lstream.avail_in;
|
||||
*bytes_written = outbuf_size - self->lstream.avail_out;
|
||||
|
||||
out:
|
||||
return _ostree_lzma_return (res, error);
|
||||
return G_CONVERTER_CONVERTED;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user