diff options
| author | Haesung Kim <matia.kim@lge.com> | 2014-12-12 16:58:08 -0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 11:00:08 +0200 |
| commit | 274d8965e6f38f65b068fdd8b59b51317f6d8249 (patch) | |
| tree | 918288d943acac1f0b6395b6bee82ad11cac7877 /lib | |
| parent | 67913c1deb9e7a60741b6e5dba3aed742cb3bd33 (diff) | |
lib/decompress.c: consistency of compress formats for kernel image
Magic number of compress formats for kernel image is defined by two bytes.
These numbers are written in hexadecimal number, nevertheless magic
number for only gunzip is written in octal number. The formats should be
consistent for readability. Therefore, magic numbers for gunzip are also
defined by hexadecimal number.
Signed-off-by: Haesung Kim <matia.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/decompress.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/decompress.c b/lib/decompress.c index 4d1cd0397..29c0708cf 100644 --- a/lib/decompress.c +++ b/lib/decompress.c @@ -43,8 +43,8 @@ struct compress_format { }; static const struct compress_format compressed_formats[] __initconst = { - { {037, 0213}, "gzip", gunzip }, - { {037, 0236}, "gzip", gunzip }, + { {0x1f, 0x8b}, "gzip", gunzip }, + { {0x1f, 0x9e}, "gzip", gunzip }, { {0x42, 0x5a}, "bzip2", bunzip2 }, { {0x5d, 0x00}, "lzma", unlzma }, { {0xfd, 0x37}, "xz", unxz }, |
