summaryrefslogtreecommitdiff
path: root/read.c
diff options
context:
space:
mode:
authorTom Lee <github@tomlee.co>2018-09-24 16:14:08 -0700
committerTom Lee <github@tomlee.co>2018-09-24 16:14:08 -0700
commitc3188bfb1fc59bd169b970ec159e1c9a2b949bf9 (patch)
treec42474aaf053d0c4483f30f778624fcb0abd3d7d /read.c
parenta65537a672de845f3f4530050d1e7bd88d51ac67 (diff)
Make string2ll static to avoid conflict with redis
See discussion on #609. This should also make it easier for redis to update the vendored/bundled hiredis (though not by much).
Diffstat (limited to 'read.c')
-rw-r--r--read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/read.c b/read.c
index ef483f7..cc21267 100644
--- a/read.c
+++ b/read.c
@@ -154,7 +154,7 @@ static char *seekNewline(char *s, size_t len) {
* Because of its strictness, it is safe to use this function to check if
* you can convert a string into a long long, and obtain back the string
* from the number without any loss in the string representation. */
-int string2ll(const char *s, size_t slen, long long *value) {
+static int string2ll(const char *s, size_t slen, long long *value) {
const char *p = s;
size_t plen = 0;
int negative = 0;