diff options
author | Guillem Jover <guillem@debian.org> | 2011-11-21 04:48:12 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2011-11-23 08:50:43 +0100 |
commit | 7a96597253e880b1ead816637250d7bc472b77b5 (patch) | |
tree | 1b98395a2e50757dbd06c05f2a207ca472c07de3 /dpkg-deb/extract.c | |
parent | 35dc2569ca3ab121b95d3d587d3bed1ba9f1c3d1 (diff) | |
download | dpkg-7a96597253e880b1ead816637250d7bc472b77b5.tar.gz |
libdpkg: Do not expose the compression structs
This reduces the amount of relocations on the future shared libdpkg
library. It also makes it easier to refactor the code.
Diffstat (limited to 'dpkg-deb/extract.c')
-rw-r--r-- | dpkg-deb/extract.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dpkg-deb/extract.c b/dpkg-deb/extract.c index 99362dbeb..bb5bb28df 100644 --- a/dpkg-deb/extract.c +++ b/dpkg-deb/extract.c @@ -118,7 +118,7 @@ extracthalf(const char *debar, const char *dir, const char *taroption, char nlc; int adminmember; bool oldformat, header_done; - struct compressor *decompressor = &compressor_gzip; + enum compressor_type decompressor = compressor_type_gzip; arfd = open(debar, O_RDONLY); if (arfd < 0) @@ -190,7 +190,7 @@ extracthalf(const char *debar, const char *dir, const char *taroption, decompressor = compressor_find_by_extension(extension); } - if (adminmember == -1 || decompressor == NULL) + if (adminmember == -1 || decompressor == compressor_type_unknown) ohshit(_("archive '%.250s' contains not understood data member %.*s, giving up"), debar, (int)sizeof(arh.ar_name), arh.ar_name); } |