diff options
author | Guillem Jover <guillem@debian.org> | 2014-05-28 00:38:14 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2014-05-28 00:38:14 +0200 |
commit | eb3c2635f919fdde7b0d65b5db8eded9a428a9a1 (patch) | |
tree | 79e1962a75e2adc6d9f5fc3d8234da39376ac8fb /dpkg-deb/extract.c | |
parent | 3031836bd08090a6998d121056e4617d073b3194 (diff) | |
download | dpkg-eb3c2635f919fdde7b0d65b5db8eded9a428a9a1.tar.gz |
libdpkg: Uppercase compressor enum values
Diffstat (limited to 'dpkg-deb/extract.c')
-rw-r--r-- | dpkg-deb/extract.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dpkg-deb/extract.c b/dpkg-deb/extract.c index 55fdfcb19..5a076b7ce 100644 --- a/dpkg-deb/extract.c +++ b/dpkg-deb/extract.c @@ -3,7 +3,7 @@ * extract.c - extracting archives * * Copyright © 1994,1995 Ian Jackson <ian@chiark.greenend.org.uk> - * Copyright © 2006-2012 Guillem Jover <guillem@debian.org> + * Copyright © 2006-2014 Guillem Jover <guillem@debian.org> * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -122,7 +122,7 @@ extracthalf(const char *debar, const char *dir, char nlc; int adminmember = -1; bool header_done; - enum compressor_type decompressor = compressor_type_gzip; + enum compressor_type decompressor = COMPRESSOR_TYPE_GZIP; arfd = open(debar, O_RDONLY); if (arfd < 0) @@ -183,9 +183,9 @@ extracthalf(const char *debar, const char *dir, adminmember = 1; decompressor = compressor_find_by_extension(extension); - if (decompressor != compressor_type_none && - decompressor != compressor_type_gzip && - decompressor != compressor_type_xz) + if (decompressor != COMPRESSOR_TYPE_NONE && + decompressor != COMPRESSOR_TYPE_GZIP && + decompressor != COMPRESSOR_TYPE_XZ) ohshit(_("archive '%s' uses unknown compression for member '%.*s', " "giving up"), debar, (int)sizeof(arh.ar_name), arh.ar_name); @@ -200,7 +200,7 @@ extracthalf(const char *debar, const char *dir, adminmember= 0; decompressor = compressor_find_by_extension(extension); - if (decompressor == compressor_type_unknown) + if (decompressor == COMPRESSOR_TYPE_UNKNOWN) ohshit(_("archive '%s' uses unknown compression for member '%.*s', " "giving up"), debar, (int)sizeof(arh.ar_name), arh.ar_name); |