Skip to content

Commit

Permalink
BF: Type decls first
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldmccarthy committed Nov 14, 2020
1 parent 55b2551 commit 96fdfe7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions indexed_gzip/zran.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ int ZRAN_FIND_STREAM_NOT_FOUND = -1;
*
* Otherwise (if a compressed stream was not found), this function returns
* ZRAN_FIND_STREAM_NOT_FOUND.
*
* The number of bytes that were read before the new stream was found is
*
* The number of bytes that were read before the new stream was found is
* stored in the provided offset pointer.
*
* If an error occurs, ZRAN_FIND_STREAM_ERROR is returned.
Expand Down Expand Up @@ -1155,8 +1155,8 @@ int _zran_find_next_stream(zran_index_t *index,
* the next stream. GZIP files
* start with 0x1f8b.
*/
*offset = 0;
int found = 0;
*offset = 0;

while (stream->avail_in >= 2) {

Expand Down Expand Up @@ -1219,7 +1219,7 @@ static int _zran_inflate(zran_index_t *index,
* Used to store and check return
* values. f_ret is for fread,
* z_ret is for zlib/zran functions.
* off is for storing offset of new
* off is for storing offset of new
* stream (from _zran_find_next_stream).
* return_val is the return value for
* this function.
Expand Down Expand Up @@ -1506,10 +1506,10 @@ static int _zran_inflate(zran_index_t *index,
z_ret = _zran_find_next_stream(index, strm, &off);

/*
* _zran_find_next_stream will skip over
* _zran_find_next_stream will skip over
* bytes in the input data while searching
* for the next stream (e.g. the CRC32
* and ISIZE fields at the end of a gzip
* and ISIZE fields at the end of a gzip
* stream). It stores the number of skipped
* bytes in the offset parameter.
*/
Expand Down

0 comments on commit 96fdfe7

Please sign in to comment.