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
473feecf
Commit
473feecf
authored
Apr 20, 2007
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added {read,write}_varlong30() inline functions to use the
right long-int function based on protocol version.
parent
351e23ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
io.h
io.h
+17
-0
No files found.
io.h
View file @
473feecf
...
...
@@ -25,6 +25,14 @@ read_varint30(int f)
return
read_varint
(
f
);
}
static
inline
int64
read_varlong30
(
int
f
,
uchar
min_bytes
)
{
if
(
protocol_version
<
30
)
return
read_longint
(
f
);
return
read_varlong
(
f
,
min_bytes
);
}
static
inline
void
write_varint30
(
int
f
,
int32
x
)
{
...
...
@@ -33,3 +41,12 @@ write_varint30(int f, int32 x)
else
write_varint
(
f
,
x
);
}
static
inline
void
write_varlong30
(
int
f
,
int64
x
,
uchar
min_bytes
)
{
if
(
protocol_version
<
30
)
write_longint
(
f
,
x
);
else
write_varlong
(
f
,
x
,
min_bytes
);
}
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