From 73d9c97e784394c4d57679407dc9f934003a339e Mon Sep 17 00:00:00 2001 From: DebXWoody Date: Wed, 27 Jan 2021 19:26:53 +0100 Subject: [PATCH] Compile error src/mode/roster.c:66 src/mode/roster.c:66:19: error: implicit conversion from enumeration type 'enum mode' to different enumeration type 'CommandType' (aka 'enum commandTyp') [-Werror,-Wenum-conversion] command->type = UNKOWN; ~ ^~~~~~ Fixed by using the correct enum definition. Issue: #21 --- src/mode/roster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mode/roster.c b/src/mode/roster.c index 8a00bcc..30c2fd9 100644 --- a/src/mode/roster.c +++ b/src/mode/roster.c @@ -63,7 +63,7 @@ static void _teardown(xmppc_t *xmppc); void roster_execute_command(xmppc_t *xmppc, int argc, char *argv[]) { command_t *command = malloc(sizeof(command_t)); - command->type = UNKOWN; + command->type = C_UNKOWN; if (argc == 0) { logError(xmppc, "No subcommand provided\n");