FIX| 消除编译警告;

master
wangbo 2 years ago
parent 7e009a02a2
commit 8bfa70e3e7

@ -201,9 +201,9 @@ int32_t _cpld_half_word_read(uint16_t *data)
/* CPLD 模块初始化代码. */
int32_t cpld_handle_init(void)
{
#if 0
uint16_t temp = 0;
#if 0
/* 申请信号量, 防止多个线程同时操作 fifo. */
if (pthread_mutex_init(&cpld_mutex, NULL) != 0)
{

@ -1134,9 +1134,9 @@ int32_t _csg_handle_init_common(void)
/* 后台通讯模块初始化. */
int32_t csg_handle_init(void)
{
#if 0
int32_t rv = 0;
#if 0
/* 初始化模块. */
LD_E_RETURN(DBG_M_PD_CSG_ERR, _csg_handle_init_common());
#endif

@ -484,11 +484,11 @@ int32_t _pd_port_str_to_unit_port(const char *port_str, uint8_t *unit, uint8_t *
return: */
int32_t pd_main(void)
{
#if 0
uint8_t i = 0;
uint8_t j = 0;
int32_t rv = 0;
#if 0
/* 初始化基本参数. */
for(i = 0; i < PD_DAU_SUM; i++)
{

@ -196,11 +196,13 @@ int32_t main(int32_t argc, char **argv)
/* 启动命令行 */
vtysh_shell_init();
#if 0
/* 初始化完成 */
version_hex = version_str_to_int();
is_system_init = TRUE;
start_time = time(NULL);
//GPIO_ERR1_LED(1);
#endif
/* 启动ssh命令行 */
vtycmd_init();

@ -2592,6 +2592,7 @@ char *_vtysh_gets(void)
free(line_read);
line_read = NULL;
}
//printf("QQ:node=%d type=%d\n", vtysh->node, vtysh->type);
/* 输入密码时不要回显 */
if (PASSWORD_NODE == vtysh->node)
@ -2604,7 +2605,7 @@ char *_vtysh_gets(void)
/* 获取一行命令. */
//line_read = readline(vtysh_prompt());
line_read = readline(NULL);
line_read = readline(NULL);
/* 打开回显 */
if (PASSWORD_NODE == vtysh->node)
@ -2889,7 +2890,7 @@ void vtysh_init(void)
{
vtysh_readline_init();
vty_init();
vtysh_device_init();
//vtysh_device_init();
/* Make vty structure. */
vtysh = vty_create();

Loading…
Cancel
Save