Unverified Commit f2387daa authored by Masahiro Ide's avatar Masahiro Ide Committed by GitHub
Browse files

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.
parent c37d63e8
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment