diff --git a/igzip/igzip.c b/igzip/igzip.c index 01fcb0b..7808640 100644 --- a/igzip/igzip.c +++ b/igzip/igzip.c @@ -98,11 +98,10 @@ void isal_deflate_icf_finish(struct isal_zstream *stream); /* Forward declarations */ static inline void reset_match_history(struct isal_zstream *stream); -void write_header(struct isal_zstream *stream, uint8_t * deflate_hdr, - uint32_t deflate_hdr_count, uint32_t extra_bits_count, uint32_t next_state, - uint32_t toggle_end_of_stream); -void write_deflate_header(struct isal_zstream *stream); -void write_trailer(struct isal_zstream *stream); +static void write_header(struct isal_zstream *stream, uint8_t * deflate_hdr, + uint32_t deflate_hdr_count, uint32_t extra_bits_count, + uint32_t next_state, uint32_t toggle_end_of_stream); +static void write_trailer(struct isal_zstream *stream); struct slver { uint16_t snum; @@ -1288,9 +1287,9 @@ static int write_deflate_header_unaligned_stateless(struct isal_zstream *stream) } /* Toggle end of stream only works when deflate header is aligned */ -void write_header(struct isal_zstream *stream, uint8_t * deflate_hdr, - uint32_t deflate_hdr_count, uint32_t extra_bits_count, - uint32_t next_state, uint32_t toggle_end_of_stream) +static void write_header(struct isal_zstream *stream, uint8_t * deflate_hdr, + uint32_t deflate_hdr_count, uint32_t extra_bits_count, + uint32_t next_state, uint32_t toggle_end_of_stream) { struct isal_zstate *state = &stream->internal_state; uint32_t hdr_extra_bits = deflate_hdr[deflate_hdr_count]; @@ -1354,7 +1353,7 @@ void write_header(struct isal_zstream *stream, uint8_t * deflate_hdr, } -void write_trailer(struct isal_zstream *stream) +static void write_trailer(struct isal_zstream *stream) { struct isal_zstate *state = &stream->internal_state; unsigned int bytes = 0; diff --git a/igzip/igzip_inflate.c b/igzip/igzip_inflate.c index 3538f89..d8b9e13 100644 --- a/igzip/igzip_inflate.c +++ b/igzip/igzip_inflate.c @@ -832,7 +832,7 @@ static int inline setup_dynamic_header(struct inflate_state *state) /* Reads in the header pointed to by in_stream and sets up state to reflect that * header information*/ -int read_header(struct inflate_state *state) +static int read_header(struct inflate_state *state) { uint8_t bytes; uint32_t btype; @@ -895,7 +895,7 @@ int read_header(struct inflate_state *state) /* Reads in the header pointed to by in_stream and sets up state to reflect that * header information*/ -int read_header_stateful(struct inflate_state *state) +static int read_header_stateful(struct inflate_state *state) { uint64_t read_in_start = state->read_in; int32_t read_in_length_start = state->read_in_length;