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
redis
Commits
e6c1aeaf
Commit
e6c1aeaf
authored
Dec 25, 2020
by
xhe
Browse files
fix the format
Signed-off-by:
xhe
<
xw897002528@gmail.com
>
parent
fae5ceef
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
e6c1aeaf
...
@@ -2765,9 +2765,9 @@ void helloCommand(client *c) {
...
@@ -2765,9 +2765,9 @@ void helloCommand(client *c) {
if
(
c
->
argc
>=
2
)
{
if
(
c
->
argc
>=
2
)
{
if
(
getLongLongFromObjectOrReply
(
c
,
c
->
argv
[
next_arg
++
],
&
ver
,
if
(
getLongLongFromObjectOrReply
(
c
,
c
->
argv
[
next_arg
++
],
&
ver
,
"Protocol version is not an integer or out of range"
)
!=
C_OK
)
{
"Protocol version is not an integer or out of range"
)
!=
C_OK
)
{
return
;
return
;
}
}
if
(
ver
<
2
||
ver
>
3
)
{
if
(
ver
<
2
||
ver
>
3
)
{
addReplyError
(
c
,
"-NOPROTO unsupported protocol version"
);
addReplyError
(
c
,
"-NOPROTO unsupported protocol version"
);
...
...
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