From 1968f4d42a71c3b2d809981228dc6bbc5760ccf5 Mon Sep 17 00:00:00 2001 From: Jon Griffiths Date: Wed, 23 Mar 2016 11:51:50 +1300 Subject: [PATCH] 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 --- ccan/crypto/sha256/sha256.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; }; -- 2.39.2