diff options
Diffstat (limited to 'src/connection.c')
-rw-r--r-- | src/connection.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/connection.c b/src/connection.c index 6bb0c9ec1..fd9d5d17a 100644 --- a/src/connection.c +++ b/src/connection.c @@ -57,7 +57,7 @@ int connTypeRegister(ConnectionType *ct) { return C_OK; } -int connTypeInitialize() { +int connTypeInitialize(void) { /* currently socket connection type is necessary */ serverAssert(RedisRegisterConnectionTypeSocket() == C_OK); @@ -88,7 +88,7 @@ ConnectionType *connectionByType(const char *typename) { } /* Cache TCP connection type, query it by string once */ -ConnectionType *connectionTypeTcp() { +ConnectionType *connectionTypeTcp(void) { static ConnectionType *ct_tcp = NULL; if (ct_tcp != NULL) @@ -101,7 +101,7 @@ ConnectionType *connectionTypeTcp() { } /* Cache TLS connection type, query it by string once */ -ConnectionType *connectionTypeTls() { +ConnectionType *connectionTypeTls(void) { static ConnectionType *ct_tls = NULL; static int cached = 0; @@ -116,7 +116,7 @@ ConnectionType *connectionTypeTls() { } /* Cache Unix connection type, query it by string once */ -ConnectionType *connectionTypeUnix() { +ConnectionType *connectionTypeUnix(void) { static ConnectionType *ct_unix = NULL; if (ct_unix != NULL) @@ -141,7 +141,7 @@ int connectionIndexByType(const char *typename) { return -1; } -void connTypeCleanupAll() { +void connTypeCleanupAll(void) { ConnectionType *ct; int type; |