mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 17:51:22 +03:00
journal: fix warning about LZ4_compress_limitedOutput
This commit is contained in:
parent
4f8b86e307
commit
691b90d465
@ -112,7 +112,11 @@ int compress_blob_lz4(const void *src, uint64_t src_size,
|
||||
if (src_size < 9)
|
||||
return -ENOBUFS;
|
||||
|
||||
#if LZ4_VERSION_NUMBER >= 10700
|
||||
r = LZ4_compress_default(src, (char*)dst + 8, src_size, (int) dst_alloc_size - 8);
|
||||
#else
|
||||
r = LZ4_compress_limitedOutput(src, (char*)dst + 8, src_size, (int) dst_alloc_size - 8);
|
||||
#endif
|
||||
if (r <= 0)
|
||||
return -ENOBUFS;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user