diff options
Diffstat (limited to 'cipher/md5.c')
-rw-r--r-- | cipher/md5.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cipher/md5.c b/cipher/md5.c index 6e27c7205..ef6886eb4 100644 --- a/cipher/md5.c +++ b/cipher/md5.c @@ -312,13 +312,10 @@ md5_final( MD5_CONTEXT *hd ) p = hd->buf; #ifdef BIG_ENDIAN_HOST - #define X(a) do { *p++ = hd->##a ; *p++ = hd->##a >> 8; \ - *p++ = hd->##a >> 16; *p++ = hd->##a >> 24; } while(0) + #define X(a) do { *p++ = hd-> a ; *p++ = hd-> a >> 8; \ + *p++ = hd-> a >> 16; *p++ = hd-> a >> 24; } while(0) #else /* little endian */ - /*#define X(a) do { *(u32*)p = hd->##a ; p += 4; } while(0)*/ - /* Unixware's cpp doesn't like the above construct so we do it his way: - * (reported by Allan Clark) */ - #define X(a) do { *(u32*)p = (*hd).a ; p += 4; } while(0) + #define X(a) do { *(u32*)p = hd-> a ; p += 4; } while(0) #endif X(A); X(B); |