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
This commit is contained in:
DebXWoody 2021-01-27 19:26:53 +01:00
parent 93e5a669c6
commit 73d9c97e78
No known key found for this signature in database
GPG Key ID: C2DC916F35751C24

View File

@ -63,7 +63,7 @@ static void _teardown(xmppc_t *xmppc);
void roster_execute_command(xmppc_t *xmppc, int argc, char *argv[]) { void roster_execute_command(xmppc_t *xmppc, int argc, char *argv[]) {
command_t *command = malloc(sizeof(command_t)); command_t *command = malloc(sizeof(command_t));
command->type = UNKOWN; command->type = C_UNKOWN;
if (argc == 0) { if (argc == 0) {
logError(xmppc, "No subcommand provided\n"); logError(xmppc, "No subcommand provided\n");