提交 2e03c0f7 编写于 作者: M Mupceet

init: fix bugs

Signed-off-by: NMupceet <laiguizhong@huawei.com>
上级 89727a3e
...@@ -111,7 +111,7 @@ typedef struct { ...@@ -111,7 +111,7 @@ typedef struct {
typedef struct { typedef struct {
BaseTask base; BaseTask base;
int events; uint32_t events;
ProcessWatchEvent processEvent; ProcessWatchEvent processEvent;
} WatcherTask; } WatcherTask;
...@@ -134,4 +134,4 @@ int CheckTaskFlags(const BaseTask *task, uint32_t flags); ...@@ -134,4 +134,4 @@ int CheckTaskFlags(const BaseTask *task, uint32_t flags);
#endif #endif
#endif #endif
#endif #endif
\ No newline at end of file
...@@ -108,7 +108,7 @@ cJSON *MakeSandboxJson(const char *sandboxFileName, const int MODE) ...@@ -108,7 +108,7 @@ cJSON *MakeSandboxJson(const char *sandboxFileName, const int MODE)
// assemble mount-bind-paths items // assemble mount-bind-paths items
// Append items to mount-bind-paths // Append items to mount-bind-paths
for (int i = 0; i < (sizeof(APP_PATHS) / sizeof(char *)); i++) { for (size_t i = 0; i < (sizeof(APP_PATHS) / sizeof(char *)); i++) {
cJSON_AddItemToArray(mJsonMtBdPth, mJsonMtBdPth_Itm = cJSON_CreateObject()); cJSON_AddItemToArray(mJsonMtBdPth, mJsonMtBdPth_Itm = cJSON_CreateObject());
int MOUNT_FLAG_COUNT = 2; int MOUNT_FLAG_COUNT = 2;
if (MODE != NULL_MOUNT_ITEM) { if (MODE != NULL_MOUNT_ITEM) {
......
...@@ -142,7 +142,7 @@ static const DYNAMIC_DEVICE_NODE dynamicDevices[] = { ...@@ -142,7 +142,7 @@ static const DYNAMIC_DEVICE_NODE dynamicDevices[] = {
static void HandleRequiredDynamicDeviceNodes(const struct Uevent *uevent) static void HandleRequiredDynamicDeviceNodes(const struct Uevent *uevent)
{ {
mode_t mask; mode_t mask;
int idx = 0; size_t idx = 0;
if (uevent->deviceName == NULL) { if (uevent->deviceName == NULL) {
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册