[PATCH 3/4] sign-file: fix few checkpatch issues
From: Shreenidhi Shedi
Date: Thu Feb 09 2023 - 11:06:34 EST
Signed-off-by: Shreenidhi Shedi <sshedi@xxxxxxxxxx>
---
sign-file.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sign-file.c b/sign-file.c
index b2619db..2faf302 100644
--- a/sign-file.c
+++ b/sign-file.c
@@ -73,7 +73,7 @@ struct module_signature {
#define PKEY_ID_PKCS7 2
-static char magic_number[] = "~Module signature appended~\n";
+static const char magic_number[] = "~Module signature appended~\n";
static __attribute__((noreturn))
void format(void)
@@ -118,7 +118,7 @@ static void drain_openssl_errors(void)
if (__cond) { \
errx(1, fmt, ## __VA_ARGS__); \
} \
- } while(0)
+ } while (0)
static const char *key_pass;
--
2.39.0