On Saturday 28 April 2012 18:28:40 Marek Vasut wrote: > --- a/include/u-boot/md5.h > +++ b/include/u-boot/md5.h > @@ -11,7 +11,10 @@ > struct MD5Context { > __u32 buf[4]; > __u32 bits[2]; > - unsigned char in[64]; > + union { > + unsigned char in[64]; > + __u32 in32[16]; > + }; > }; > > --- a/lib/md5.c > +++ b/lib/md5.c > > /* Append length in bits and transform */ > - ((__u32 *) ctx->in)[14] = ctx->bits[0]; > - ((__u32 *) ctx->in)[15] = ctx->bits[1]; > + ctx->in32[14] = ctx->bits[0]; > + ctx->in32[15] = ctx->bits[1];
nice Acked-by: Mike Frysinger <vap...@gentoo.org> -mike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot