[Tarantool-patches] [PATCH 02/22] crc32: use void for empty args

Cyrill Gorcunov gorcunov at gmail.com
Fri Jul 3 17:45:06 MSK 2020


Part-of #4718

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 src/crc32.c | 2 +-
 src/crc32.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/crc32.c b/src/crc32.c
index ba9dfb105..dc40f3a83 100644
--- a/src/crc32.c
+++ b/src/crc32.c
@@ -40,7 +40,7 @@
 crc32_func crc32_calc = NULL;
 
 void
-crc32_init()
+crc32_init(void)
 {
 #if defined(HAVE_CPUID) && (defined (__x86_64__) || defined (__i386__))
 	crc32_calc = sse42_enabled_cpu() ? &crc32c_hw : &crc32c;
diff --git a/src/crc32.h b/src/crc32.h
index c29e7fbd2..c84505e79 100644
--- a/src/crc32.h
+++ b/src/crc32.h
@@ -45,7 +45,7 @@ typedef uint32_t (*crc32_func)(uint32_t crc, const char *buf, unsigned int len);
  */
 extern crc32_func crc32_calc;
 
-void crc32_init();
+void crc32_init(void);
 
 #if defined(__cplusplus)
 } /* extern "C" */
-- 
2.26.2



More information about the Tarantool-patches mailing list