diff --git a/services/param/client/param_request.c b/services/param/client/param_request.c index 557a690ffb62a96ce805c354f67e42bdb5312379..fba5486d996e877011294c5c94695133eebb868a 100644 --- a/services/param/client/param_request.c +++ b/services/param/client/param_request.c @@ -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"); diff --git a/services/param/manager/param_utils.c b/services/param/manager/param_utils.c index 77b34a0c542a993d58092d4cf430c23428dbeb50..4b41c4e2669f291052e28b054959b1510696a28c 100755 --- a/services/param/manager/param_utils.c +++ b/services/param/manager/param_utils.c @@ -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);