Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
ac593860
Commit
ac593860
authored
Sep 09, 2007
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used a couple "#if SUBPROTOCOL_VERSION != 0" conditionals.
parent
73a649b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
compat.c
compat.c
+7
-1
No files found.
compat.c
View file @
ac593860
...
@@ -67,13 +67,19 @@ static void check_sub_protocol(void)
...
@@ -67,13 +67,19 @@ static void check_sub_protocol(void)
{
{
char
*
dot
;
char
*
dot
;
int
their_protocol
,
their_sub
;
int
their_protocol
,
their_sub
;
#if SUBPROTOCOL_VERSION != 0
int
our_sub
=
protocol_version
<
PROTOCOL_VERSION
?
0
:
SUBPROTOCOL_VERSION
;
int
our_sub
=
protocol_version
<
PROTOCOL_VERSION
?
0
:
SUBPROTOCOL_VERSION
;
#else
int
our_sub
=
0
;
#endif
if
(
!
shell_cmd
||
!
(
dot
=
strchr
(
shell_cmd
,
'.'
))
if
(
!
shell_cmd
||
!
(
dot
=
strchr
(
shell_cmd
,
'.'
))
||
!
(
their_protocol
=
atoi
(
shell_cmd
))
||
!
(
their_protocol
=
atoi
(
shell_cmd
))
||
!
(
their_sub
=
atoi
(
dot
+
1
)))
{
||
!
(
their_sub
=
atoi
(
dot
+
1
)))
{
#if SUBPROTOCOL_VERSION != 0
if
(
our_sub
)
if
(
our_sub
)
protocol_version
--
;
protocol_version
--
;
#endif
return
;
return
;
}
}
...
@@ -84,7 +90,7 @@ static void check_sub_protocol(void)
...
@@ -84,7 +90,7 @@ static void check_sub_protocol(void)
}
}
if
(
their_protocol
>
protocol_version
)
if
(
their_protocol
>
protocol_version
)
their_sub
=
0
;
/* 0 == final version */
their_sub
=
0
;
/* 0 == final version
of older protocol
*/
if
(
their_sub
!=
our_sub
)
if
(
their_sub
!=
our_sub
)
protocol_version
--
;
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