Fix a prototype inconsitency of _serverAssert
between redisassert.h and redis.h (#10872)
both redisassert.c and server.h + debug.c use const, but redisassert.h doesn't.
This commit is contained in:
parent
c37d63e87a
commit
f2387daa83
@ -43,7 +43,7 @@
|
||||
#define assert(_e) (likely((_e))?(void)0 : (_serverAssert(#_e,__FILE__,__LINE__),redis_unreachable()))
|
||||
#define panic(...) _serverPanic(__FILE__,__LINE__,__VA_ARGS__),redis_unreachable()
|
||||
|
||||
void _serverAssert(char *estr, char *file, int line);
|
||||
void _serverAssert(const char *estr, const char *file, int line);
|
||||
void _serverPanic(const char *file, int line, const char *msg, ...);
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user