summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-12-21 11:17:50 -0800
committerantirez <antirez@gmail.com>2020-02-12 14:06:04 +0100
commit3c610b4e8d8d4b09254c5e1a435ca25b82710e38 (patch)
tree81e75973d7dc8a916d323f74c91a1b2272a97f64
parent16b2d07f0a9b58027611dab7f97788d37cb5ab84 (diff)
downloadredis-3c610b4e8d8d4b09254c5e1a435ca25b82710e38.tar.gz
Mark extern definition of SDS_NOINIT in sds.h
This helps in avoiding multiple definition of this variable, its also defined globally in sds.c Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--src/sds.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sds.h b/src/sds.h
index 1bdb60dec..adcc12c0a 100644
--- a/src/sds.h
+++ b/src/sds.h
@@ -34,7 +34,7 @@
#define __SDS_H
#define SDS_MAX_PREALLOC (1024*1024)
-const char *SDS_NOINIT;
+extern const char *SDS_NOINIT;
#include <sys/types.h>
#include <stdarg.h>