From f2387daa837ea2ec58899f76b0d2b63cbc1f8db9 Mon Sep 17 00:00:00 2001 From: Masahiro Ide Date: Sun, 19 Jun 2022 14:42:12 +0900 Subject: [PATCH] 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. --- src/redisassert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redisassert.h b/src/redisassert.h index dd7920554..a3f95da09 100644 --- a/src/redisassert.h +++ b/src/redisassert.h @@ -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