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:
parent
93e5a669c6
commit
73d9c97e78
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user