未验证 提交 f552d901 编写于 作者: O openharmony_ci 提交者: Gitee

!886 【OpenHarmony开源贡献者计划2022】fix warning: function declaration isn't a prototype

Merge pull request !886 from rtos_ming/strict-prototypes
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册