From f9ad6b335e0fd699398370d4c6e2e45e1c459dea Mon Sep 17 00:00:00 2001 From: Kevin Darbyshire-Bryant Date: Tue, 5 Oct 2021 20:45:24 +0100 Subject: [PATCH] Add more missing includes for byte swap operations And fix a couple of spelling errors while we're here Signed-off-by: Kevin Darbyshire-Bryant --- src/mkporayfw.c | 1 + src/ptgen.c | 1 + src/trx.c | 3 ++- src/trx2edips.c | 3 ++- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mkporayfw.c b/src/mkporayfw.c index 9efa310..43c8885 100644 --- a/src/mkporayfw.c +++ b/src/mkporayfw.c @@ -15,6 +15,7 @@ * Copyright (C) 2008,2009 Wang Jian */ +#include #include #include #include diff --git a/src/ptgen.c b/src/ptgen.c index 665c5f7..69757c1 100644 --- a/src/ptgen.c +++ b/src/ptgen.c @@ -10,6 +10,7 @@ * Copyright (C) 2010, Intel Corp. Huang Ying */ +#include #include #include #include diff --git a/src/trx.c b/src/trx.c index e09d671..4b7f778 100644 --- a/src/trx.c +++ b/src/trx.c @@ -30,6 +30,7 @@ * Add option -2 to allow v2 header */ +#include #include #include #include @@ -45,7 +46,7 @@ #define STORE32_LE(X) (X) #define LOAD32_LE(X) (X) #else -#error unkown endianness! +#error unknown endianness! #endif uint32_t crc32buf(char *buf, size_t len); diff --git a/src/trx2edips.c b/src/trx2edips.c index e8ac14d..eca2fcc 100644 --- a/src/trx2edips.c +++ b/src/trx2edips.c @@ -1,4 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-only +#include #include #include #include @@ -14,7 +15,7 @@ #define STORE32_LE(X) (X) #define LOAD32_LE(X) (X) #else -#error unkown endianness! +#error unknown endianness! #endif /**********************************************************************/ -- 2.30.2