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:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user