summaryrefslogtreecommitdiff
path: root/lib/zlib
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2023-02-13 10:38:45 +0100
committerManish Pandey <manish.pandey2@arm.com>2023-03-13 12:34:40 +0100
commit2535e2047fe79ac16eed79c6f99261cd9ce53dfc (patch)
tree0c1e9acb24e8efd6cd03aaf4d1f9fc643a93ca34 /lib/zlib
parent521d4fe6761ce62f06acf2b07248d8d5b5366ea3 (diff)
downloadarm-trusted-firmware-2535e2047fe79ac16eed79c6f99261cd9ce53dfc.tar.gz
style: fix functions definitions
This is to fix old style functions definitions. Change-Id: I094b1497dcf948d4d8de4d57d93878aa092ea053 Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Diffstat (limited to 'lib/zlib')
-rw-r--r--lib/zlib/crc32.c4
-rw-r--r--lib/zlib/inflate.c2
2 files changed, 3 insertions, 3 deletions
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;