summaryrefslogtreecommitdiffstats
path: root/lzip.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-01-27 16:11:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-01-27 16:11:59 +0000
commit8139f66c36f8b437f5dbecb19607e2e09a9358d3 (patch)
tree6f918f756e59a2a83d0da2d7e3dce55e1684d9f8 /lzip.h
parentReleasing debian version 0.6-1. (diff)
downloadxlunzip-8139f66c36f8b437f5dbecb19607e2e09a9358d3.tar.xz
xlunzip-8139f66c36f8b437f5dbecb19607e2e09a9358d3.zip
Merging upstream version 0.7.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lzip.h')
-rw-r--r--lzip.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lzip.h b/lzip.h
index f06c084..15713ec 100644
--- a/lzip.h
+++ b/lzip.h
@@ -1,5 +1,5 @@
/* Xlunzip - Test tool for the lzip_decompress linux module
- Copyright (C) 2016-2020 Antonio Diaz Diaz.
+ Copyright (C) 2016-2021 Antonio Diaz Diaz.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -75,6 +75,9 @@ static inline unsigned long long Lt_get_member_size( const Lzip_trailer data )
}
+static inline void set_retval( int * retval, const int new_val )
+ { if( *retval < new_val ) *retval = new_val; }
+
static const char * const mem_msg = "Not enough memory.";
/* defined in in_place.c */