diff options
author | Marek Vasut <marex@denx.de> | 2012-04-28 12:28:40 +0000 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2012-05-04 16:28:44 -0600 |
commit | 09c4030092fa2e911fb26e4723ecd610e49642b2 (patch) | |
tree | 5120543461577befc9fee3ee395269dd4680882f /lib | |
parent | e2c993a62efb831cccbc056ddda24f22b92273a3 (diff) |
GCC47: Fix warning in md5.c
md5.c: In function ‘MD5Final’:
md5.c:156:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
md5.c:157:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/md5.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -153,8 +153,8 @@ MD5Final(unsigned char digest[16], struct MD5Context *ctx) byteReverse(ctx->in, 14); /* 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]; MD5Transform(ctx->buf, (__u32 *) ctx->in); byteReverse((unsigned char *) ctx->buf, 4); |