Refactor elf_compare
authorMartin Liska <mliska@suse.cz>
Mon, 28 Nov 2022 13:10:36 +0000 (14:10 +0100)
committerMartin Liska <mliska@suse.cz>
Tue, 29 Nov 2022 09:33:22 +0000 (10:33 +0100)
commit6bb3e0b5c2124d51c604ec0cf145419c6856f5c0
tree9843d28a6507e78249961d59bf8ad5556ac5c27e
parent98bdf533c4990728f0db653ab4e98a503d7654ce
Refactor elf_compare

src/ChangeLog:

* elfcompress.c (T_UNSET): Remove and use ch_type.
(T_DECOMPRESS): Likewise.
(T_COMPRESS_ZLIB): Likewise.
(T_COMPRESS_GNU): Likewise.
(enum ch_type): New.
(parse_opt): Parse to new ch_type.
(compress_section): Change gnu and compress arguments
to schtype (source compression) and dchtype (destination
compression).
(process_file): Use new enum type and adjusted compress_section.
src/elfcompress.c