mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Fix trivial compiler warnings.
This commit is contained in:
parent
5c24fd02cc
commit
c533b031bc
4
runzip.c
4
runzip.c
|
|
@ -336,8 +336,8 @@ static i64 runzip_chunk(rzip_control *control, int fd_in, int fd_out, int fd_his
|
|||
*/
|
||||
i64 runzip_fd(rzip_control *control, int fd_in, int fd_out, int fd_hist, i64 expected_size)
|
||||
{
|
||||
char md5_resblock[MD5_DIGEST_SIZE];
|
||||
char md5_stored[MD5_DIGEST_SIZE];
|
||||
uchar md5_resblock[MD5_DIGEST_SIZE];
|
||||
uchar md5_stored[MD5_DIGEST_SIZE];
|
||||
struct timeval start,end;
|
||||
i64 total = 0;
|
||||
|
||||
|
|
|
|||
2
rzip.c
2
rzip.c
|
|
@ -757,7 +757,7 @@ void rzip_fd(rzip_control *control, int fd_in, int fd_out)
|
|||
* If file size < compression window, can't do
|
||||
*/
|
||||
struct timeval current, start, last;
|
||||
char md5_resblock[MD5_DIGEST_SIZE];
|
||||
uchar md5_resblock[MD5_DIGEST_SIZE];
|
||||
i64 len = 0, last_chunk = 0;
|
||||
int pass = 0, passes, j;
|
||||
struct rzip_state *st;
|
||||
|
|
|
|||
4
util.h
4
util.h
|
|
@ -36,12 +36,12 @@ void lrz_crypt(const rzip_control *control, uchar *buf, i64 len, const uchar *sa
|
|||
#define LRZ_DECRYPT (0)
|
||||
#define LRZ_ENCRYPT (1)
|
||||
|
||||
static void lrz_encrypt(const rzip_control *control, uchar *buf, i64 len, const uchar *salt)
|
||||
static inline void lrz_encrypt(const rzip_control *control, uchar *buf, i64 len, const uchar *salt)
|
||||
{
|
||||
lrz_crypt(control, buf, len, salt, LRZ_ENCRYPT);
|
||||
}
|
||||
|
||||
static void lrz_decrypt(const rzip_control *control, uchar *buf, i64 len, const uchar *salt)
|
||||
static inline void lrz_decrypt(const rzip_control *control, uchar *buf, i64 len, const uchar *salt)
|
||||
{
|
||||
lrz_crypt(control, buf, len, salt, LRZ_DECRYPT);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue