diff options
author | Michael Veksler <Mihails.Vekslers@zabbix.com> | 2017-12-11 16:54:41 +0300 |
---|---|---|
committer | Michael Veksler <Mihails.Vekslers@zabbix.com> | 2017-12-11 16:54:41 +0300 |
commit | 1d026ab2be525343fbd353b21c1acdb160385e65 (patch) | |
tree | 3cbaed30a55757a47562450713580716cd489503 /include/sysinfo.h | |
parent | 82a5f5d62d8ca710344d166365952fe4687e438d (diff) |
...G...PS. [ZBX-12671] refactoring the code base to support the compiler flag -Wstrict-prototypes
Diffstat (limited to 'include/sysinfo.h')
-rw-r--r-- | include/sysinfo.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/sysinfo.h b/include/sysinfo.h index 97a7dc51f6b..233f32402b6 100644 --- a/include/sysinfo.h +++ b/include/sysinfo.h @@ -192,15 +192,15 @@ int get_diskstat(const char *devname, zbx_uint64_t *dstat); #define PROCESS_MODULE_COMMAND 0x2 #define PROCESS_WITH_ALIAS 0x4 -void init_metrics(); +void init_metrics(void); int add_metric(ZBX_METRIC *metric, char *error, size_t max_error_len); -void free_metrics(); +void free_metrics(void); int process(const char *in_command, unsigned flags, AGENT_RESULT *result); int add_user_parameter(const char *key, char *command, char *error, size_t max_error_len); -int add_user_module(const char *key, int (*function)()); -void test_parameters(); +int add_user_module(const char *key, int (*function)(void)); +void test_parameters(void); void test_parameter(const char *key); void init_result(AGENT_RESULT *result); @@ -290,7 +290,7 @@ typedef int (*zbx_metric_func_t)(AGENT_REQUEST *request, AGENT_RESULT *result); typedef struct { const char *mode; - int (*function)(); + int (*function)(void); } MODE_FUNCTION; |