summaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorYaacovHazan <31382944+YaacovHazan@users.noreply.github.com>2023-04-20 09:49:19 +0300
committerGitHub <noreply@github.com>2023-04-20 09:49:19 +0300
commit74959a0f73a44cfe56d5fb95957021c55b0ae214 (patch)
tree4a338ddebeb6084a9f05f28ef00fdbcb7fda5e03 /src/server.h
parent091412cf62f90c38cee20c1de2aa1016040d0e99 (diff)
downloadredis-74959a0f73a44cfe56d5fb95957021c55b0ae214.tar.gz
Misuse of bool in redis (#12077)
We currently do not allow the use of bool type in redis project. We didn't catch it in script.c because we included hdr_histogram.h in server.h Removing it (but still having it in some c files) reducing the chance to miss the usage of bool type in the future and catch it in compiling stage. It also removes the dependency on hdr_histogram for every unit that includes server.h
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server.h b/src/server.h
index b286b6803..222044ab9 100644
--- a/src/server.h
+++ b/src/server.h
@@ -53,7 +53,6 @@
#include <sys/socket.h>
#include <lua.h>
#include <signal.h>
-#include "hdr_histogram.h"
#ifdef HAVE_LIBSYSTEMD
#include <systemd/sd-daemon.h>
@@ -92,6 +91,8 @@ typedef struct redisObject robj;
#include "endianconv.h"
#include "crc64.h"
+struct hdr_histogram;
+
/* helpers */
#define numElements(x) (sizeof(x)/sizeof((x)[0]))