X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=md5.c;h=5a0785d1851aee39faba4f7f2cc728d497282eef;hb=08de0b57479d159b443adfee3e0e3b5bfcc4bbd1;hp=4707d6389cb7d6ee9ad02b64a7e42a78ca8d506a;hpb=4b8483ae278577a3adc8d84da81d77019704466f;p=onak.git diff --git a/md5.c b/md5.c index 4707d63..5a0785d 100644 --- a/md5.c +++ b/md5.c @@ -17,6 +17,8 @@ * You should have received a copy of the GNU General Public License * 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.4 2004/05/27 22:02:05 noodles Exp $ */ /* Written by Ulrich Drepper , 1995. */ /* heavily modified for GnuPG by */ @@ -34,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; @@ -262,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 }