From 85e0d5870781ae5df7114a81604516fcefbd1cb3 Mon Sep 17 00:00:00 2001 From: zhumingxian Date: Thu, 30 Jun 2022 19:26:08 +0800 Subject: [PATCH] fix warning: function declaration isn't a prototype Signed-off-by: zhumingxian --- services/param/include/param_persist.h | 2 +- services/param/include/param_security.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/services/param/include/param_persist.h b/services/param/include/param_persist.h index 0f998873..50beeaa7 100644 --- a/services/param/include/param_persist.h +++ b/services/param/include/param_persist.h @@ -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); diff --git a/services/param/include/param_security.h b/services/param/include/param_security.h index 2ede0bcb..f944ab6d 100644 --- a/services/param/include/param_security.h +++ b/services/param/include/param_security.h @@ -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 -- GitLab