unlz4: replace INIT

There's no need for this abstraction.

Requested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
This commit is contained in:
Jan Beulich committed 2021-04-16 14:39:25 +02:00
1 parent 0d8e20de1a
commit d9b1620aa4
2 files changed
+9 -9

No files matched your search

+4 -4
View File
@@ -46,8 +46,8 @@ static const int8_t dec64table[] = {0, 0, 0, -1, 0, 1, 2, 3};
#if defined(__XEN__) || defined(__MINIOS__)
static int INIT lz4_uncompress(const unsigned char *source, unsigned char *dest,
int osize)
static int __init lz4_uncompress(const unsigned char *source, unsigned char *dest,
int osize)
{
const BYTE *ip = (const BYTE *) source;
const BYTE *ref;
@@ -302,8 +302,8 @@ _output_error:
#if defined(__XEN__) || defined(__MINIOS__)
int INIT lz4_decompress(const unsigned char *src, size_t *src_len,
unsigned char *dest, size_t actual_dest_len)
int __init lz4_decompress(const unsigned char *src, size_t *src_len,
unsigned char *dest, size_t actual_dest_len)
{
int ret = -1;
int input_len = 0;
+5 -5
View File
@@ -22,11 +22,11 @@
#define LZ4_DEFAULT_UNCOMPRESSED_CHUNK_SIZE (8 << 20)
#define ARCHIVE_MAGICNUMBER 0x184C2102
int INIT unlz4(unsigned char *input, unsigned int in_len,
int (*fill)(void *, unsigned int),
int (*flush)(void *, unsigned int),
unsigned char *output, unsigned int *posp,
void (*error)(const char *x))
int __init unlz4(unsigned char *input, unsigned int in_len,
int (*fill)(void *, unsigned int),
int (*flush)(void *, unsigned int),
unsigned char *output, unsigned int *posp,
void (*error)(const char *x))
{
int ret = -1;
size_t chunksize = 0;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.