qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH 2/3] tests/tcg/sha1: remove endian include


From: Warner Losh
Subject: Re: [RFC PATCH 2/3] tests/tcg/sha1: remove endian include
Date: Tue, 3 Aug 2021 08:20:15 -0600



On Tue, Aug 3, 2021 at 7:55 AM Warner Losh <imp@bsdimp.com> wrote:


On Tue, Aug 3, 2021, 5:02 AM Alex Bennée <alex.bennee@linaro.org> wrote:
This doesn't exist in BSD world and doesn't seem to be needed by
either.

Sys/endian.h is common. FreeBSD has endian.h, but others don't. 

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Cc: Warner Losh <imp@bsdimp.com>

Acked by: Warner Losh <imp@bsdimp.com>

On second thought, this is

Reviewed by: Warner Losh <imp@bsdimp.com>

since I know the change is good.

Warner
 
---
 tests/tcg/multiarch/sha1.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tests/tcg/multiarch/sha1.c b/tests/tcg/multiarch/sha1.c
index 87bfbcdf52..0081bd7657 100644
--- a/tests/tcg/multiarch/sha1.c
+++ b/tests/tcg/multiarch/sha1.c
@@ -43,7 +43,6 @@ void SHA1Init(SHA1_CTX* context);
 void SHA1Update(SHA1_CTX* context, const unsigned char* data, uint32_t len);
 void SHA1Final(unsigned char digest[20], SHA1_CTX* context);
 /* ================ end of sha1.h ================ */
-#include <endian.h>

 #define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits))))

--
2.30.2


reply via email to

[Prev in Thread] Current Thread [Next in Thread]