修复编译警告
This commit is contained in:
parent
f9f7cde064
commit
4335f3b49a
|
@ -60,7 +60,7 @@ static int key_ctr_c(void* pv)
|
||||||
|
|
||||||
static xcmd_key_t keys[] =
|
static xcmd_key_t keys[] =
|
||||||
{
|
{
|
||||||
{CTR_C, key_ctr_c, "ctr+c"},
|
{CTR_C, key_ctr_c, "ctr+c", NULL},
|
||||||
};
|
};
|
||||||
|
|
||||||
void user_keys_init(void)
|
void user_keys_init(void)
|
||||||
|
|
|
@ -4,4 +4,4 @@
|
||||||
void ex_cmds_init(void)
|
void ex_cmds_init(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,4 +11,4 @@ void ex_cmds_init(void);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -49,15 +49,15 @@ static int xcmd_ctr_l(void *pv)
|
||||||
|
|
||||||
static xcmd_key_t ex_keys[] =
|
static xcmd_key_t ex_keys[] =
|
||||||
{
|
{
|
||||||
{CTR_A, xcmd_ctr_a, "ctr+a"},
|
{CTR_A, xcmd_ctr_a, "ctr+a", NULL},
|
||||||
{CTR_E, xcmd_ctr_e, "ctr+e"},
|
{CTR_E, xcmd_ctr_e, "ctr+e", NULL},
|
||||||
{CTR_U, xcmd_ctr_u, "ctr+u"},
|
{CTR_U, xcmd_ctr_u, "ctr+u", NULL},
|
||||||
{CTR_K, xcmd_ctr_k, "ctr+k"},
|
{CTR_K, xcmd_ctr_k, "ctr+k", NULL},
|
||||||
{CTR_L, xcmd_ctr_l, "ctr+l"},
|
{CTR_L, xcmd_ctr_l, "ctr+l", NULL},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
void ex_keys_init(void)
|
void ex_keys_init(void)
|
||||||
{
|
{
|
||||||
xcmd_key_register(ex_keys, sizeof(ex_keys)/sizeof(xcmd_key_t));
|
xcmd_key_register(ex_keys, sizeof(ex_keys)/sizeof(xcmd_key_t));
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,4 +11,4 @@ void ex_keys_init(void);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -108,14 +108,14 @@ static int cmd_ctr_q(void* pv)
|
||||||
|
|
||||||
static xcmd_t cmds[] =
|
static xcmd_t cmds[] =
|
||||||
{
|
{
|
||||||
{"echo", cmd_echo, "echo anything"},
|
{"echo", cmd_echo, "echo anything", NULL},
|
||||||
{"history", cmd_history, "show history list"},
|
{"history", cmd_history, "show history list", NULL},
|
||||||
{"example", cmd_example, "example [-f|-i|-s] [val]"},
|
{"example", cmd_example, "example [-f|-i|-s] [val]", NULL},
|
||||||
};
|
};
|
||||||
|
|
||||||
static xcmd_key_t keys[] =
|
static xcmd_key_t keys[] =
|
||||||
{
|
{
|
||||||
{CTR_Q, cmd_ctr_q, "ctr+q"},
|
{CTR_Q, cmd_ctr_q, "ctr+q", NULL},
|
||||||
};
|
};
|
||||||
|
|
||||||
void test_cmd_init(void)
|
void test_cmd_init(void)
|
||||||
|
|
|
@ -51,10 +51,10 @@ static void cmd_logo(int argc, char* argv[])
|
||||||
|
|
||||||
static xcmd_t cmds[] =
|
static xcmd_t cmds[] =
|
||||||
{
|
{
|
||||||
{"clear", cmd_clear, "clear screen"},
|
{"clear", cmd_clear, "clear screen", NULL},
|
||||||
{"help", cmd_help, "show this list"},
|
{"help", cmd_help, "show this list", NULL},
|
||||||
{"keys", cmd_keys, "show keys"},
|
{"keys", cmd_keys, "show keys", NULL},
|
||||||
{"logo", cmd_logo, "show logo"},
|
{"logo", cmd_logo, "show logo", NULL},
|
||||||
};
|
};
|
||||||
|
|
||||||
void default_cmds_init(void)
|
void default_cmds_init(void)
|
||||||
|
|
|
@ -108,14 +108,14 @@ static int xcmd_auto_completion(void *pv)
|
||||||
|
|
||||||
static xcmd_key_t default_keys[] =
|
static xcmd_key_t default_keys[] =
|
||||||
{
|
{
|
||||||
{BACKSPACE, xcmd_del_char, "backspace"},
|
{BACKSPACE, xcmd_del_char, "backspace", NULL},
|
||||||
{L_DELETE, xcmd_del_char, "left delete"},
|
{L_DELETE, xcmd_del_char, "left delete", NULL},
|
||||||
{LEFT, xcmd_cursor_left, "left"},
|
{LEFT, xcmd_cursor_left, "left", NULL},
|
||||||
{RIGHT, xcmd_cursor_right, "right"},
|
{RIGHT, xcmd_cursor_right, "right", NULL},
|
||||||
{TAB, xcmd_auto_completion, "tab"},
|
{TAB, xcmd_auto_completion, "tab", NULL},
|
||||||
#if XCMD_HISTORY_MAX_NUM
|
#if XCMD_HISTORY_MAX_NUM
|
||||||
{DW, xcmd_history_dw, "down"},
|
{DW, xcmd_history_dw, "down", NULL},
|
||||||
{UP, xcmd_history_up, "up"},
|
{UP, xcmd_history_up, "up", NULL},
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue