Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
d153c1f3
Unverified
Commit
d153c1f3
authored
Sep 24, 2018
by
Mark Nunberg
Committed by
GitHub
Sep 24, 2018
Browse files
Merge pull request #610 from thomaslee/tom_static_string2ll
Make string2ll static to avoid conflict with redis
parents
a65537a6
c3188bfb
Changes
1
Show whitespace changes
Inline
Side-by-side
read.c
View file @
d153c1f3
...
@@ -154,7 +154,7 @@ static char *seekNewline(char *s, size_t len) {
...
@@ -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
* 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
* you can convert a string into a long long, and obtain back the string
* from the number without any loss in the string representation. */
* 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
;
const
char
*
p
=
s
;
size_t
plen
=
0
;
size_t
plen
=
0
;
int
negative
=
0
;
int
negative
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment