A very minor optimization was made to read_sbuf(), read_byte(),
authorWayne Davison <wayned@samba.org>
Sat, 17 Jul 2004 21:17:34 +0000 (21:17 +0000)
committerWayne Davison <wayned@samba.org>
Sat, 17 Jul 2004 21:17:34 +0000 (21:17 +0000)
write_sbuf(), and write_byte().

io.c

diff --git a/io.c b/io.c
index 909bc650b069169647eb26f7c60493dd7d13b399..925b13edccca82980b37bce6d9236fb2625d7c00 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)
 {
-       read_buf(f,buf,len);
+       readfd(f, buf, len);
        buf[len] = 0;
 }
 
 unsigned char read_byte(int f)
 {
        unsigned char c;
-       read_buf(f, (char *)&c, 1);
+       readfd(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));
+       writefd(f, buf, strlen(buf));
 }
 
 
 void write_byte(int f,unsigned char c)
 {
-       write_buf(f,(char *)&c,1);
+       writefd(f, (char *)&c, 1);
 }