diff --git a/runzip.c b/runzip.c index 55a38b7..ae48ab9 100644 --- a/runzip.c +++ b/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; diff --git a/rzip.c b/rzip.c index 61440c9..0930f3a 100644 --- a/rzip.c +++ b/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; diff --git a/util.h b/util.h index a5a868e..74fe819 100644 --- a/util.h +++ b/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); }