Skip to content

Commit c3188bf

Browse files
committed
Make string2ll static to avoid conflict with redis
See discussion on redis#609. This should also make it easier for redis to update the vendored/bundled hiredis (though not by much).
1 parent a65537a commit c3188bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

read.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ static char *seekNewline(char *s, size_t len) {
154154
* Because of its strictness, it is safe to use this function to check if
155155
* you can convert a string into a long long, and obtain back the string
156156
* from the number without any loss in the string representation. */
157-
int string2ll(const char *s, size_t slen, long long *value) {
157+
static int string2ll(const char *s, size_t slen, long long *value) {
158158
const char *p = s;
159159
size_t plen = 0;
160160
int negative = 0;

0 commit comments

Comments
 (0)