summaryrefslogtreecommitdiffstats
path: root/lib/sha256.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2021-04-21 12:23:14 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2021-04-21 15:42:37 +0200
commit19083e4f7570ff5a4c22fd24b3945c5606eb0c84 (patch)
treeef3fbfd7da49161aa9f93162e1a12a2a027db5eb /lib/sha256.c
parentbuild: improve AX_LUA_HEADERS for crosscompile (diff)
downloadfrr-19083e4f7570ff5a4c22fd24b3945c5606eb0c84.tar.xz
frr-19083e4f7570ff5a4c22fd24b3945c5606eb0c84.zip
build: remove deprecated AC_WORDS_BIGENDIAN
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/sha256.c')
-rw-r--r--lib/sha256.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/sha256.c b/lib/sha256.c
index 37ced5b40..a9b7a4aef 100644
--- a/lib/sha256.c
+++ b/lib/sha256.c
@@ -35,8 +35,6 @@ static inline uint32_t be32dec(const void *pp)
return ((uint32_t)(p[3]) + ((uint32_t)(p[2]) << 8)
+ ((uint32_t)(p[1]) << 16) + ((uint32_t)(p[0]) << 24));
}
-#else
-#include <sys/endian.h>
#endif
#if !HAVE_DECL_BE32ENC
@@ -49,8 +47,6 @@ static inline void be32enc(void *pp, uint32_t x)
p[1] = (x >> 16) & 0xff;
p[0] = (x >> 24) & 0xff;
}
-#else
-#include <sys/endian.h>
#endif
/*