From 2d1439b6e781bb112a16e87446f74568c86228b0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Tue, 16 Apr 2013 16:06:49 +0200
Subject: [PATCH] Fix for big-endian support.

---
 ChangeLog      | 3 +++
 umac-set-key.c | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index c979cce2..f2828156 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2013-04-16  Niels Möller  <nisse@lysator.liu.se>
 
+	* umac-set-key.c (BE_SWAP32_N): Fixed dummy definition used for
+	big-endian systems.
+
 	* Makefile.in (TARGETS): Deleted eccdata, it should be build only
 	when public key support is enabled.
 	(clean-here): Exlicitly list it here.
diff --git a/umac-set-key.c b/umac-set-key.c
index 05dcf697..1b9e5e9b 100644
--- a/umac-set-key.c
+++ b/umac-set-key.c
@@ -53,7 +53,7 @@ umac_kdf (struct aes_ctx *aes, unsigned index, unsigned length, uint8_t *dst)
 
 #if WORDS_BIGENDIAN
 #define BE_SWAP32(x) x
-#define BE_SWAP32_N(x)
+#define BE_SWAP32_N(n, x)
 #else
 #define BE_SWAP32(x)				\
   ((ROTL32(8,  x) & 0x00FF00FFUL) |		\
-- 
GitLab