mirror of
https://gitee.com/openharmony/startup_init
synced 2025-03-03 10:09:50 +00:00
fix warning: function declaration isn't a prototype
Signed-off-by: zhumingxian <zhumingxian@ohos.com.cn>
This commit is contained in:
parent
3137109ceb
commit
85e0d58707
@ -34,7 +34,7 @@ typedef struct {
|
||||
} PersistAdpContext;
|
||||
|
||||
typedef struct {
|
||||
int (*load)();
|
||||
int (*load)(void);
|
||||
int (*save)(const char *name, const char *value);
|
||||
int (*batchSaveBegin)(PERSIST_SAVE_HANDLE *handle);
|
||||
int (*batchSave)(PERSIST_SAVE_HANDLE handle, const char *name, const char *value);
|
||||
|
@ -98,12 +98,12 @@ typedef int (*RegisterSecurityOpsPtr)(ParamSecurityOps *ops, int isInit);
|
||||
typedef int (*SelinuxSetParamCheck)(const char *paraName, struct ucred *uc);
|
||||
typedef struct SelinuxSpace_ {
|
||||
void *selinuxHandle;
|
||||
void (*setSelinuxLogCallback)();
|
||||
void (*setSelinuxLogCallback)(void);
|
||||
int (*setParamCheck)(const char *paraName, struct ucred *uc);
|
||||
const char *(*getParamLabel)(const char *paraName);
|
||||
void (*initParamSelinux)();
|
||||
void (*initParamSelinux)(void);
|
||||
int (*readParamCheck)(const char *paraName);
|
||||
ParamContextsList *(*getParamList)();
|
||||
ParamContextsList *(*getParamList)(void);
|
||||
void (*destroyParamList)(ParamContextsList **list);
|
||||
} SelinuxSpace;
|
||||
#ifdef PARAM_SUPPORT_SELINUX
|
||||
|
Loading…
x
Reference in New Issue
Block a user