From a6bf28bbb2a8505fd2079e965d2d7868caefaff6 Mon Sep 17 00:00:00 2001 From: Mark Friedenbach Date: Mon, 8 Feb 2016 16:44:41 -0800 Subject: Restructure code style to prevent trailing comma in enumerations, which is not permitted in C89. --- src/libsha2/state.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libsha2/state.h b/src/libsha2/state.h index c752047..241d552 100644 --- a/src/libsha2/state.h +++ b/src/libsha2/state.h @@ -33,32 +33,32 @@ typedef enum libsha2_algorithm /** * SHA-224, outputs 28 bytes */ - LIBSHA2_224 = 1, + LIBSHA2_224 = 1 /** * SHA-256, outputs 32 bytes */ - LIBSHA2_256 = 2, + ,LIBSHA2_256 = 2 /** * SHA-384, outputs 48 bytes */ - LIBSHA2_384 = 3, + ,LIBSHA2_384 = 3 /** * SHA-512, outputs 64 bytes */ - LIBSHA2_512 = 4, + ,LIBSHA2_512 = 4 /** * SHA-512/224, outputs 28 bytes */ - LIBSHA2_512_224 = 5, + ,LIBSHA2_512_224 = 5 /** * SHA-512/256, outputs 32 bytes */ - LIBSHA2_512_256 = 6, + ,LIBSHA2_512_256 = 6 } libsha2_algorithm_t; -- cgit v1.2.3-70-g09d2 From 7783c685096702aabb92e39032b01b9b870f51c7 Mon Sep 17 00:00:00 2001 From: Mark Friedenbach Date: Fri, 19 Feb 2016 17:56:09 -0800 Subject: Revert "Restructure code style to prevent trailing comma in enumerations, which is not permitted in C89." This reverts commit a6bf28bbb2a8505fd2079e965d2d7868caefaff6. --- src/libsha2/state.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libsha2/state.h b/src/libsha2/state.h index 241d552..c752047 100644 --- a/src/libsha2/state.h +++ b/src/libsha2/state.h @@ -33,32 +33,32 @@ typedef enum libsha2_algorithm /** * SHA-224, outputs 28 bytes */ - LIBSHA2_224 = 1 + LIBSHA2_224 = 1, /** * SHA-256, outputs 32 bytes */ - ,LIBSHA2_256 = 2 + LIBSHA2_256 = 2, /** * SHA-384, outputs 48 bytes */ - ,LIBSHA2_384 = 3 + LIBSHA2_384 = 3, /** * SHA-512, outputs 64 bytes */ - ,LIBSHA2_512 = 4 + LIBSHA2_512 = 4, /** * SHA-512/224, outputs 28 bytes */ - ,LIBSHA2_512_224 = 5 + LIBSHA2_512_224 = 5, /** * SHA-512/256, outputs 32 bytes */ - ,LIBSHA2_512_256 = 6 + LIBSHA2_512_256 = 6, } libsha2_algorithm_t; -- cgit v1.2.3-70-g09d2 From 31a53a2b9e8b0b7ee2bfc493171504285c5ff3c9 Mon Sep 17 00:00:00 2001 From: Mark Friedenbach Date: Fri, 19 Feb 2016 17:57:40 -0800 Subject: Remove trailing comma in enumeration Trailing commas are not supported in strict C89. --- src/libsha2/state.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsha2/state.h b/src/libsha2/state.h index c752047..f081a64 100644 --- a/src/libsha2/state.h +++ b/src/libsha2/state.h @@ -58,7 +58,7 @@ typedef enum libsha2_algorithm /** * SHA-512/256, outputs 32 bytes */ - LIBSHA2_512_256 = 6, + LIBSHA2_512_256 = 6 } libsha2_algorithm_t; -- cgit v1.2.3-70-g09d2