Use a const funcs in redisContext.

This commit is contained in:
Yossi Gottlieb 2019-09-01 13:46:07 +03:00
parent 44ef4de9d9
commit 5c85a04164
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ typedef struct redisContextFuncs {
/* Context for a connection to Redis */
typedef struct redisContext {
redisContextFuncs *funcs; /* Function table */
const redisContextFuncs *funcs; /* Function table */
int err; /* Error flags, 0 when there is no error */
char errstr[128]; /* String representation of error when applicable */