From: Jon Griffiths Date: Tue, 22 Mar 2016 22:51:50 +0000 (+1300) Subject: sha256: Use the same union order as the ctx structure X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=1968f4d42a71c3b2d809981228dc6bbc5760ccf5;ds=sidebyside sha256: Use the same union order as the ctx structure This reads better. Also remove duplicated comments for the members. Signed-off-by: Jon Griffiths --- diff --git a/ccan/crypto/sha256/sha256.h b/ccan/crypto/sha256/sha256.h index 3e1a4919..1297c41f 100644 --- a/ccan/crypto/sha256/sha256.h +++ b/ccan/crypto/sha256/sha256.h @@ -21,10 +21,8 @@ */ struct sha256 { union { - /* Array of chars */ - unsigned char u8[32]; - /* Array of uint32_t */ uint32_t u32[8]; + unsigned char u8[32]; } u; };