提交 a46161bd 编写于 作者: S sun_fan

init: fix bugs ..

Signed-off-by: Nsun_fan <sun_fan1@hoperun.com>
上级 b381f226
......@@ -275,7 +275,7 @@ int SystemGetParameterValue(ParamHandle handle, char *value, unsigned int *len)
}
int SystemTraversalParameter(
void (*traversalParameter)(ParamHandle handle, ParamContextPtr cookie), ParamContextPtr cookie)
void (*traversalParameter)(ParamHandle handle, void *cookie), void *cookie)
{
InitParamClient();
PARAM_CHECK(traversalParameter != NULL, return -1, "The param is null");
......
......@@ -43,7 +43,7 @@ int ReadFileInDir(const char *dirPath, const char *includeExt,
int (*processFile)(const char *fileName, void *context), void *context)
{
if (dirPath == NULL || processFile == NULL) {
return NULL;
return -1;
}
DIR *pDir = opendir(dirPath);
PARAM_CHECK(pDir != NULL, return -1, "Read dir :%s failed.%d", dirPath, errno);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册