Skip to content
Commit d9b6a4a4 authored by Chris Coulson's avatar Chris Coulson
Browse files

apparmor: Fix -Wdiscarded-qualifiers warning in deflate_compress

The no-compression case was taking a shortcut in deflate_compress() which
just returned a pointer to the source buffer, but this triggered a
-Wdiscarded-qualifiers warning because the source buffer argument is
declared as const. Making the source buffer argument in the
deflate_compress() signature non-const feels strange, so move the
no-compression shortcut up to compress_loaddata() instead.
parent 3c6945a9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment