libxcrypt/libxcrypt-4.4.5-remove_unneeded_union_keyword.patch
2019-05-04 20:42:43 +02:00

23 lines
808 B
Diff

From 5cce1ebe4e8e303bab593af694c9d30c51cf5eb4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
Date: Sat, 4 May 2019 19:46:16 +0200
Subject: [PATCH] alg-gost3411-2012-core: Remove unneeded union keyword.
---
lib/alg-gost3411-2012-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/alg-gost3411-2012-core.c b/lib/alg-gost3411-2012-core.c
index f508ba8..13bb493 100644
--- a/lib/alg-gost3411-2012-core.c
+++ b/lib/alg-gost3411-2012-core.c
@@ -149,7 +149,7 @@ g(uint512_u *h, const uint512_u *N, const unsigned char *m)
static inline void
stage2(GOST34112012Context *CTX, const unsigned char *data)
{
- union uint512_u m;
+ uint512_u m;
memcpy(&m, data, sizeof(m));
g(&(CTX->h), &(CTX->N), (const unsigned char *)&m);