fix warning: function declaration isn't a prototype

Signed-off-by: zhumingxian <zhumingxian@ohos.com.cn>
This commit is contained in:
zhumingxian 2022-06-30 19:26:08 +08:00
parent 3137109ceb
commit 85e0d58707
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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