提交 85e0d587 编写于 作者: Z zhumingxian

fix warning: function declaration isn't a prototype

Signed-off-by: Nzhumingxian <zhumingxian@ohos.com.cn>
上级 3137109c
...@@ -34,7 +34,7 @@ typedef struct { ...@@ -34,7 +34,7 @@ typedef struct {
} PersistAdpContext; } PersistAdpContext;
typedef struct { typedef struct {
int (*load)(); int (*load)(void);
int (*save)(const char *name, const char *value); int (*save)(const char *name, const char *value);
int (*batchSaveBegin)(PERSIST_SAVE_HANDLE *handle); int (*batchSaveBegin)(PERSIST_SAVE_HANDLE *handle);
int (*batchSave)(PERSIST_SAVE_HANDLE handle, const char *name, const char *value); int (*batchSave)(PERSIST_SAVE_HANDLE handle, const char *name, const char *value);
......
...@@ -98,12 +98,12 @@ typedef int (*RegisterSecurityOpsPtr)(ParamSecurityOps *ops, int isInit); ...@@ -98,12 +98,12 @@ typedef int (*RegisterSecurityOpsPtr)(ParamSecurityOps *ops, int isInit);
typedef int (*SelinuxSetParamCheck)(const char *paraName, struct ucred *uc); typedef int (*SelinuxSetParamCheck)(const char *paraName, struct ucred *uc);
typedef struct SelinuxSpace_ { typedef struct SelinuxSpace_ {
void *selinuxHandle; void *selinuxHandle;
void (*setSelinuxLogCallback)(); void (*setSelinuxLogCallback)(void);
int (*setParamCheck)(const char *paraName, struct ucred *uc); int (*setParamCheck)(const char *paraName, struct ucred *uc);
const char *(*getParamLabel)(const char *paraName); const char *(*getParamLabel)(const char *paraName);
void (*initParamSelinux)(); void (*initParamSelinux)(void);
int (*readParamCheck)(const char *paraName); int (*readParamCheck)(const char *paraName);
ParamContextsList *(*getParamList)(); ParamContextsList *(*getParamList)(void);
void (*destroyParamList)(ParamContextsList **list); void (*destroyParamList)(ParamContextsList **list);
} SelinuxSpace; } SelinuxSpace;
#ifdef PARAM_SUPPORT_SELINUX #ifdef PARAM_SUPPORT_SELINUX
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册