summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 05:09:27 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 05:09:27 +0000
commit92533af3edd2386f8fa92e2fd8cdd7217e4529ef (patch)
treede8fba955b26579d3a8450e540e0a900747c70d2 /main.c
parentAdding debian version 1.7~pre1-1. (diff)
downloadlunzip-92533af3edd2386f8fa92e2fd8cdd7217e4529ef.tar.xz
lunzip-92533af3edd2386f8fa92e2fd8cdd7217e4529ef.zip
Merging upstream version 1.7.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 323bc35..59789ad 100644
--- a/main.c
+++ b/main.c
@@ -168,7 +168,7 @@ static unsigned long getnum( const char * const ptr,
if( !errno && tail[0] )
{
- int factor = ( tail[1] == 'i' ) ? 1024 : 1000;
+ const int factor = ( tail[1] == 'i' ) ? 1024 : 1000;
int exponent = 0, i;
bool bad_multiplier = false;
switch( tail[0] )
@@ -211,7 +211,7 @@ static unsigned long getnum( const char * const ptr,
static int get_dict_size( const char * const arg )
{
char * tail;
- int bits = strtol( arg, &tail, 0 );
+ const int bits = strtol( arg, &tail, 0 );
if( bits >= min_dictionary_bits &&
bits <= max_dictionary_bits && *tail == 0 )
return ( 1 << bits );