zkey: Fix sparse, gcc 10, and -Wpedantic warnings

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Ingo Franzki
2020-09-29 11:46:53 +02:00
committed by Jan Höppner
parent 301eece09b
commit 041e3ad996
14 changed files with 109 additions and 90 deletions
+3 -3
View File
@@ -38,7 +38,7 @@
/*
* Program configuration
*/
const struct util_prg prg = {
static const struct util_prg prg = {
.desc = "Manage secure AES keys",
.command_args = "COMMAND [SECURE-KEY-FILE]",
.args = "",
@@ -2769,8 +2769,8 @@ static bool is_command(struct zkey_command *command, const char *str)
/*
* Find the command in the command table
*/
struct zkey_command *find_command(const struct zkey_command *commands,
const char *command)
static struct zkey_command *find_command(const struct zkey_command *commands,
const char *command)
{
struct zkey_command *cmd = (struct zkey_command *)commands;