summaryrefslogtreecommitdiff
path: root/dpkg-deb/main.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2011-11-21 04:48:12 +0100
committerGuillem Jover <guillem@debian.org>2011-11-23 08:50:43 +0100
commit7a96597253e880b1ead816637250d7bc472b77b5 (patch)
tree1b98395a2e50757dbd06c05f2a207ca472c07de3 /dpkg-deb/main.c
parent35dc2569ca3ab121b95d3d587d3bed1ba9f1c3d1 (diff)
downloaddpkg-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/main.c')
-rw-r--r--dpkg-deb/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dpkg-deb/main.c b/dpkg-deb/main.c
index 88f765c01..d487eb56f 100644
--- a/dpkg-deb/main.c
+++ b/dpkg-deb/main.c
@@ -134,7 +134,7 @@ static const char printforhelp[] =
int debugflag=0, nocheckflag=0, oldformatflag=BUILDOLDPKGFORMAT;
int opt_verbose = 0;
-struct compressor *compressor = &compressor_gzip;
+enum compressor_type compressor = compressor_type_gzip;
int compress_level = -1;
static void
@@ -157,7 +157,7 @@ static void
setcompresstype(const struct cmdinfo *cip, const char *value)
{
compressor = compressor_find_by_name(value);
- if (compressor == NULL)
+ if (compressor == compressor_type_unknown)
ohshit(_("unknown compression type `%s'!"), value);
}