From 59e7f0de9b2f24926091025707eb81df3c9eeb1a Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Fri, 4 Jan 2008 21:40:19 +0100 Subject: [PATCH] Remove the broken endianness check in the md5 code. Signed-off-by: Michael Buesch --- fwcutter/md5.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fwcutter/md5.c b/fwcutter/md5.c index 3b90942..c27f0e1 100644 --- a/fwcutter/md5.c +++ b/fwcutter/md5.c @@ -24,10 +24,9 @@ #include /* for memcpy() */ #include "md5.h" +/* This function does the Right Thing (tm) on LittleEndian and BigEndian. */ static void byteReverse(unsigned char *buf, unsigned longs) { -#if __BYTE_ORDER == __LITTLE_ENDIAN -/* we need the value in big-endian */ uint32_t t; do { @@ -36,7 +35,6 @@ static void byteReverse(unsigned char *buf, unsigned longs) *(uint32_t *) buf = t; buf += 4; } while (--longs); -#endif } /* The four core functions - F1 is optimized somewhat */ -- 2.31.1