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
93095cbe
Commit
93095cbe
authored
Jul 17, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A very minor optimization was made to read_sbuf(), read_byte(),
write_sbuf(), and write_byte().
parent
399371e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
io.c
io.c
+4
-4
No files found.
io.c
View file @
93095cbe
...
...
@@ -761,14 +761,14 @@ void read_buf(int f,char *buf,size_t len)
void
read_sbuf
(
int
f
,
char
*
buf
,
size_t
len
)
{
read
_buf
(
f
,
buf
,
len
);
read
fd
(
f
,
buf
,
len
);
buf
[
len
]
=
0
;
}
unsigned
char
read_byte
(
int
f
)
{
unsigned
char
c
;
read
_buf
(
f
,
(
char
*
)
&
c
,
1
);
read
fd
(
f
,
(
char
*
)
&
c
,
1
);
return
c
;
}
...
...
@@ -1037,13 +1037,13 @@ void write_buf(int f,char *buf,size_t len)
/** Write a string to the connection */
static
void
write_sbuf
(
int
f
,
char
*
buf
)
{
write
_buf
(
f
,
buf
,
strlen
(
buf
));
write
fd
(
f
,
buf
,
strlen
(
buf
));
}
void
write_byte
(
int
f
,
unsigned
char
c
)
{
write
_buf
(
f
,(
char
*
)
&
c
,
1
);
write
fd
(
f
,
(
char
*
)
&
c
,
1
);
}
...
...
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