gzip: set compression flags correctly as per standard
authorDaniel Edgecumbe <git@esotericnonsense.com>
Mon, 2 Sep 2019 21:05:26 +0000 (22:05 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 5 Sep 2019 11:26:58 +0000 (13:26 +0200)
commitca5d86d52c979cef05a614fb725870c10be9b265
tree0af03859c7ddd974d6b71834dd0fee10665a74cc
parentde82f0b764de4720fed3378f2e5f938a3f4b9d18
gzip: set compression flags correctly as per standard

With this change and CONFIG_GZIP_FAST=2, CONFIG_FEATURE_GZIP_LEVELS=y,

GNU gzip and BusyBox gzip now produce identical output at each compression
level (excluding 1..3, as BusyBox does not implement these levels).

Signed-off-by: Daniel Edgecumbe <git@esotericnonsense.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/gzip.c