X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/0f4971d043c38bae1bfb95201622a1405110f899..71ad017abe933ba0dc7ed1b005074c4a5ab9978a:/md5.c?ds=inline diff --git a/md5.c b/md5.c index 2cde87d..5a0785d 100644 --- a/md5.c +++ b/md5.c @@ -18,7 +18,7 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - * $Id: md5.c,v 1.2 2003/06/04 20:57:10 noodles Exp $ + * $Id: md5.c,v 1.4 2004/05/27 22:02:05 noodles Exp $ */ /* Written by Ulrich Drepper , 1995. */ /* heavily modified for GnuPG by */ @@ -36,8 +36,8 @@ void md5_init( MD5_CONTEXT *ctx ) { ctx->A = 0x67452301; - ctx->B = 0xefcdab89; - ctx->C = 0x98badcfe; + ctx->B = 0xefcdab89U; + ctx->C = 0x98badcfeU; ctx->D = 0x10325476; ctx->nblocks = 0; @@ -264,12 +264,12 @@ void md5_final( MD5_CONTEXT *hd ) /*#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 { *(unsigned int *)p = (*hd).a ; p += 4; } while(0) +#define X(a) do { *(unsigned int *)p = (*hd).a ; p += 4; } while(0) X(A); X(B); X(C); X(D); - #undef X +#undef X }