Compile error src/mode/roster.c:66

DebXWoody created

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

Change summary

src/mode/roster.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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");