From 2535e2047fe79ac16eed79c6f99261cd9ce53dfc Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Mon, 13 Feb 2023 10:38:45 +0100 Subject: [PATCH] style: fix functions definitions This is to fix old style functions definitions. Change-Id: I094b1497dcf948d4d8de4d57d93878aa092ea053 Signed-off-by: Elyes Haouas --- include/drivers/nxp/dcfg/dcfg.h | 4 ++-- lib/zlib/crc32.c | 4 ++-- lib/zlib/inflate.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/drivers/nxp/dcfg/dcfg.h b/include/drivers/nxp/dcfg/dcfg.h index cf29b1201..ee8f866c5 100644 --- a/include/drivers/nxp/dcfg/dcfg.h +++ b/include/drivers/nxp/dcfg/dcfg.h @@ -93,8 +93,8 @@ uint32_t read_reg_porsr1(void); ******************************************************************************/ bool check_boot_mode_secure(uint32_t *mode); -const soc_info_t *get_soc_info(); -const devdisr5_info_t *get_devdisr5_info(); +const soc_info_t *get_soc_info(void); +const devdisr5_info_t *get_devdisr5_info(void); void dcfg_init(dcfg_init_info_t *dcfg_init_data); bool is_sec_enabled(void); diff --git a/lib/zlib/crc32.c b/lib/zlib/crc32.c index f8357b083..21a69a8ae 100644 --- a/lib/zlib/crc32.c +++ b/lib/zlib/crc32.c @@ -279,7 +279,7 @@ local once_t made = ONCE_INIT; combinations of CRC register values and incoming bytes. */ -local void make_crc_table() +local void make_crc_table(void) { unsigned i, j, n; z_crc_t p; @@ -498,7 +498,7 @@ local void write_table64(out, table, k) } /* Actually do the deed. */ -int main() +int main(void) { make_crc_table(); return 0; diff --git a/lib/zlib/inflate.c b/lib/zlib/inflate.c index 8acbef44e..aa25e6188 100644 --- a/lib/zlib/inflate.c +++ b/lib/zlib/inflate.c @@ -342,7 +342,7 @@ struct inflate_state FAR *state; a.out > inffixed.h */ -void makefixed() +void makefixed(void) { unsigned low, size; struct inflate_state state; -- 2.39.5