diff options
author | Oran Agra <oran@redislabs.com> | 2023-05-15 13:08:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-15 13:08:15 +0300 |
commit | a51eb05b1895babb17c37c36b963e2bcbd5496d5 (patch) | |
tree | 7be24b09e0a5621a03e9f9ffe9ef27fcb44d8345 /src/connection.h | |
parent | e26a769d9627ebecb8607375580970a740348956 (diff) | |
parent | 986dbf716e0cb904c80bb444635cea3242859cc1 (diff) | |
download | redis-7.2.tar.gz |
Diffstat (limited to 'src/connection.h')
-rw-r--r-- | src/connection.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/connection.h b/src/connection.h index da8b1b7c7..7c26ac635 100644 --- a/src/connection.h +++ b/src/connection.h @@ -379,7 +379,7 @@ static inline sds connGetPeerCert(connection *conn) { } /* Initialize the redis connection framework */ -int connTypeInitialize(); +int connTypeInitialize(void); /* Register a connection type into redis connection framework */ int connTypeRegister(ConnectionType *ct); @@ -388,13 +388,13 @@ int connTypeRegister(ConnectionType *ct); ConnectionType *connectionByType(const char *typename); /* Fast path to get TCP connection type */ -ConnectionType *connectionTypeTcp(); +ConnectionType *connectionTypeTcp(void); /* Fast path to get TLS connection type */ -ConnectionType *connectionTypeTls(); +ConnectionType *connectionTypeTls(void); /* Fast path to get Unix connection type */ -ConnectionType *connectionTypeUnix(); +ConnectionType *connectionTypeUnix(void); /* Lookup the index of a connection type by type name, return -1 if not found */ int connectionIndexByType(const char *typename); @@ -418,7 +418,7 @@ static inline int connTypeConfigure(ConnectionType *ct, void *priv, int reconfig } /* Walk all the connection types and cleanup them all if possible */ -void connTypeCleanupAll(); +void connTypeCleanupAll(void); /* Test all the connection type has pending data or not. */ int connTypeHasPendingData(void); @@ -441,8 +441,8 @@ static inline aeFileProc *connAcceptHandler(ConnectionType *ct) { /* Get Listeners information, note that caller should free the non-empty string */ sds getListensInfoString(sds info); -int RedisRegisterConnectionTypeSocket(); -int RedisRegisterConnectionTypeUnix(); -int RedisRegisterConnectionTypeTLS(); +int RedisRegisterConnectionTypeSocket(void); +int RedisRegisterConnectionTypeUnix(void); +int RedisRegisterConnectionTypeTLS(void); #endif /* __REDIS_CONNECTION_H */ |