Fix trivial compiler warnings.

This commit is contained in:
Con Kolivas 2011-03-21 23:36:39 +11:00
parent 5c24fd02cc
commit c533b031bc
3 changed files with 5 additions and 5 deletions

View file

@ -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
View file

@ -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
View file

@ -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);
}