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:
Masahiro Ide 2022-06-19 14:42:12 +09:00 committed by GitHub
parent c37d63e87a
commit f2387daa83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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