From: Michael Buesch Date: Fri, 4 Jan 2008 20:40:19 +0000 (+0100) Subject: Remove the broken endianness check in the md5 code. X-Git-Tag: b43-fwcutter-013~75 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=59e7f0de9b2f24926091025707eb81df3c9eeb1a;p=b43-tools.git Remove the broken endianness check in the md5 code. Signed-off-by: Michael Buesch --- 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 */