diff --git a/test/unittest/param/watcher_agent_unittest.cpp b/test/unittest/param/watcher_agent_unittest.cpp index effd73a006bd1f65839f7a083f15584a259c2605..e0c82917c6a88ed050ec4e9b0c3391e82e77f2b2 100644 --- a/test/unittest/param/watcher_agent_unittest.cpp +++ b/test/unittest/param/watcher_agent_unittest.cpp @@ -33,11 +33,12 @@ using namespace std; using namespace OHOS; using namespace OHOS::init_param; -void TestParameterChange(const char *key, const char *value, void *context) +static void TestParameterChange(const char *key, const char *value, void *context) { printf("TestParameterChange key:%s %s", key, value); } -void TestWatcherCallBack(const char *key, ServiceStatus status) + +static void TestWatcherCallBack(const char *key, ServiceStatus status) { printf("TestWatcherCallBack key:%s %d", key, status); }