!1179 fix build for 64

Merge pull request !1179 from cheng_jinsong/fixbuild
This commit is contained in:
openharmony_ci 2022-09-02 02:54:17 +00:00 committed by Gitee
commit 30fc2ab6b8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -88,7 +88,7 @@ static int32_t BShellParamCmdWatch(BShellHandle shell, int32_t argc, char *argv[
{ {
PLUGIN_CHECK(argc >= 1, return -1, "Invalid parameter"); PLUGIN_CHECK(argc >= 1, return -1, "Invalid parameter");
PLUGIN_LOGV("BShellParamCmdWatch %s", argv[1]); PLUGIN_LOGV("BShellParamCmdWatch %s", argv[1]);
static int index = 0; static size_t index = 0;
int ret = SystemWatchParameter(argv[1], HandleParamChange, (void *)index); int ret = SystemWatchParameter(argv[1], HandleParamChange, (void *)index);
if (ret != 0) { if (ret != 0) {
PLUGIN_LOGE("Failed to watch %s", argv[1]); PLUGIN_LOGE("Failed to watch %s", argv[1]);