Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A very minor optimization was made to read_sbuf(), read_byte(),
[rsync/rsync.git]
/
io.c
diff --git
a/io.c
b/io.c
index
909bc65
..
925b13e
100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-761,14
+761,14
@@
void read_buf(int f,char *buf,size_t len)
void read_sbuf(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;
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;
}
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 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)
{
}
void write_byte(int f,unsigned char c)
{
- write
_buf(f,(char *)&c,
1);
+ write
fd(f, (char *)&c,
1);
}
}