mirror of
https://gitee.com/openharmony/startup_init
synced 2024-10-07 06:03:32 +00:00
commit
a1ff4111ee
@ -111,7 +111,7 @@ typedef struct {
|
||||
|
||||
typedef struct {
|
||||
BaseTask base;
|
||||
int events;
|
||||
uint32_t events;
|
||||
ProcessWatchEvent processEvent;
|
||||
} WatcherTask;
|
||||
|
||||
@ -134,4 +134,4 @@ int CheckTaskFlags(const BaseTask *task, uint32_t flags);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -108,7 +108,7 @@ cJSON *MakeSandboxJson(const char *sandboxFileName, const int MODE)
|
||||
|
||||
// assemble mount-bind-paths items
|
||||
// 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());
|
||||
int MOUNT_FLAG_COUNT = 2;
|
||||
if (MODE != NULL_MOUNT_ITEM) {
|
||||
|
@ -142,7 +142,7 @@ static const DYNAMIC_DEVICE_NODE dynamicDevices[] = {
|
||||
static void HandleRequiredDynamicDeviceNodes(const struct Uevent *uevent)
|
||||
{
|
||||
mode_t mask;
|
||||
int idx = 0;
|
||||
size_t idx = 0;
|
||||
|
||||
if (uevent->deviceName == NULL) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user