diff --git a/lrzip.c b/lrzip.c index 4ce586e..7e32e10 100644 --- a/lrzip.c +++ b/lrzip.c @@ -225,7 +225,7 @@ static bool get_magic(rzip_control *control, char *magic) /* Whether this archive contains md5 data at the end or not */ md5 = magic[21]; - if (md5 && MD5_RELIABLE) { + if (md5) { if (md5 == 1) control->flags |= FLAG_MD5; else @@ -1222,8 +1222,7 @@ bool compress_file(rzip_control *control) int fd_in = -1, fd_out = -1; char header[MAGIC_LEN]; - if (MD5_RELIABLE) - control->flags |= FLAG_MD5; + control->flags |= FLAG_MD5; if (ENCRYPT) if (unlikely(!get_hash(control, 1))) return false; diff --git a/lrzip_private.h b/lrzip_private.h index eef0dc5..8296e86 100644 --- a/lrzip_private.h +++ b/lrzip_private.h @@ -170,12 +170,6 @@ typedef sem_t cksem_t; #define mremap fake_mremap #endif -#if defined(__APPLE__) -# define MD5_RELIABLE (0) -#else -# define MD5_RELIABLE (1) -#endif - #define bswap_32(x) \ ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24))