diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-04-20 16:06:14 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-04-26 21:55:49 +0200 |
commit | 4d698d12de08997bf077328758a8711ba6479f52 (patch) | |
tree | c5f3befafeb5374a64b9a6f56e97cbe1e0981d4c /src/fuzz/fuzz-compress.c | |
parent | acc50c92ebdaac856f29073b6b794c4a1ab40341 (diff) | |
download | systemd-4d698d12de08997bf077328758a8711ba6479f52.tar.gz |
compress: make Compression a regular non-sparse enum
Given we have two different types for the journal object flags and the
Compression enum, let's make the latter a regular non-sparse enum, and
thus remove some surprises. We have to convert anyway between the two,
and already do via COMPRESSION_FROM_OBJECT().
Diffstat (limited to 'src/fuzz/fuzz-compress.c')
-rw-r--r-- | src/fuzz/fuzz-compress.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fuzz/fuzz-compress.c b/src/fuzz/fuzz-compress.c index 4c1186c83b..712ab3ffa9 100644 --- a/src/fuzz/fuzz-compress.c +++ b/src/fuzz/fuzz-compress.c @@ -35,7 +35,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { log_set_max_level(LOG_CRIT); log_info("Using compression %s, data size=%zu", - compression_to_string(alg) ?: "(none)", + compression_to_string(alg), data_len); buf = malloc(MAX(size, 128u)); /* Make the buffer a bit larger for very small data */ |