diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-04-22 00:24:01 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-04-22 12:02:29 +0200 |
commit | 1d997b811411c1572e8771d95eb1597bfbb0f444 (patch) | |
tree | 0abe54c9e6d49286bceac5cce527b3f1a8039df5 /src/coredump | |
parent | 6ae16e01b59e4e06ecb14db55e9f34396b398014 (diff) | |
download | systemd-1d997b811411c1572e8771d95eb1597bfbb0f444.tar.gz |
meson: simplify setting of default compression
Follow-up for da13d2ca0731b413841663052f2cc6832a855334. Instead of having
separate definitions of the bitmask flags, just define DEFAULT_COMPRESSION_FOO=0|1
directly.
(It *should* be possible to do this more simply, but the problem is that
anything that is used in #if cannot refer to C constants or enums. This is the
simplest I could come up with that preserves the property that we don't use #ifdef.)
The return value from compress_blob() is changed to propagate the error instead
of always returning -EOPNOTSUPP. The callers don't care about the specific error
value. compress_blob_*() are changed to return the compression method on success, so
that compress_blob() can be simplified. compress_stream_*() and compress_stream() are
changed in the same way for consistency, even though the callers do not currently use
this information (outside of tests).
Diffstat (limited to 'src/coredump')
0 files changed, 0 insertions, 0 deletions