MOD aaa-12 优化getall函数参数,去除无用参数
SOL 优化getall函数参数,去除无用参数 修改人:zhangliang 检视人:zhangliang
This commit is contained in:
parent
14813701e8
commit
222c96a1a8
Platform/user/configm/config-server
|
@ -101,12 +101,13 @@ ret_code cm_config_get_allconfig(uint source,
|
|||
int *cnt)
|
||||
{
|
||||
ret_code ret = RET_OK;
|
||||
int len = 0;
|
||||
|
||||
memset(input_array, 0, CM_BUFF_SIZE);
|
||||
memset(len_array, 0, CM_BUFF_SIZE*sizeof(short));
|
||||
|
||||
ret = config_svr->getall_callback(source, config_svr->config_id,
|
||||
input_array, len_array, cnt);
|
||||
ret = config_svr->getall_callback(source,
|
||||
input_array, &len);
|
||||
ASSERT_RET(ret);
|
||||
|
||||
return ret;
|
||||
|
|
|
@ -377,7 +377,7 @@ ret_code ip_config_get_all(uint source,
|
|||
|
||||
rpc_log_info("ip_config_get_all\r\n");
|
||||
|
||||
ret = if_get_prefix_all((ip_config_t *)output, single_len, count, &code);
|
||||
//ret = if_get_prefix_all((ip_config_t *)output, single_len, count, &code);
|
||||
|
||||
RET_ERR_FORMART(ret, code, output, output_len);
|
||||
ASSERT_RET(ret);
|
||||
|
|
Loading…
Reference in New Issue