Use "void" for empty argument list in declarations

In C, an empty argument list in a declaration means that the function
can accept any arguments. Use "void" instead, it means "no arguments".

C++ treats void and empty list as "no arguments".
This commit is contained in:
Pavel Roskin
2016-12-23 09:52:22 -08:00
parent 15a24ff1c4
commit 6664aac00f
19 changed files with 34 additions and 34 deletions
+1 -1
View File
@@ -42,7 +42,7 @@
#if OPENSSL_VERSION_NUMBER < 0x10100000L
static inline HMAC_CTX *
HMAC_CTX_new()
HMAC_CTX_new(void)
{
HMAC_CTX *hmac_ctx = g_new(HMAC_CTX, 1);
HMAC_CTX_init(hmac_ctx);