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
- Got rid of cleanup_buf (map-file cleanup is not needed).
[rsync/rsync.git]
/
io.c
diff --git
a/io.c
b/io.c
index
909bc65
..
ba96906
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;
}
@@
-1035,15
+1035,14
@@
void write_buf(int f,char *buf,size_t len)
}
/** Write a string to the connection */
}
/** Write a string to the connection */
-
static void write_sbuf(int f,
char *buf)
+
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);
}
}