From: Emil Velikov Date: Tue, 24 Jan 2017 21:21:08 +0000 (+0000) Subject: util/sha1: add non-typedef name for the SHA1_CTX struct X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c96127e873584e6ea3808d5cdb661d2135de1ff2;p=mesa.git util/sha1: add non-typedef name for the SHA1_CTX struct Using typedef(s) is not always the answer and makes it harder for people to do clever (or one might call nasty) things with the code. Add a struct name which we will use with follow-up commit. Signed-off-by: Emil Velikov Reviewed-by: Grazvydas Ignotas --- diff --git a/src/util/sha1/README b/src/util/sha1/README index f13baf9d1a8..f30acf984e3 100644 --- a/src/util/sha1/README +++ b/src/util/sha1/README @@ -57,3 +57,6 @@ Upstream status: TBD (N/A ?) - Manually expand __BEGIN_DECLS/__END_DECLS and make sure that they include the struct declaration. Upstream status: TBD + + - Add non-typedef struct name. +Upstream status: TBD diff --git a/src/util/sha1/sha1.h b/src/util/sha1/sha1.h index 243481a98e4..029a0ae87f1 100644 --- a/src/util/sha1/sha1.h +++ b/src/util/sha1/sha1.h @@ -20,7 +20,7 @@ extern "C" { #endif -typedef struct { +typedef struct _SHA1_CTX { uint32_t state[5]; uint64_t count; uint8_t buffer[SHA1_BLOCK_LENGTH];