]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
remove one of the functions just added, it was broken by design
authorRay Strode <rstrode@redhat.com>
Tue, 22 May 2007 20:07:10 +0000 (16:07 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 22 May 2007 20:07:10 +0000 (16:07 -0400)
src/ply-utils.c
src/ply-utils.h

index c8803200df2ef07c3f6c20664c6be351a73c0da3..6ad5f572989b2b532b5160a19566337c3ead6899 100644 (file)
@@ -104,7 +104,7 @@ ply_write (int         fd,
   return bytes_left_to_write == 0;
 }
 
-static ssize_t
+ssize_t
 ply_read_some_bytes (int     fd,
                      void   *buffer,
                      size_t  max_bytes)
@@ -152,16 +152,6 @@ ply_read (int     fd,
   return ply_read_some_bytes (fd, buffer, number_of_bytes) == number_of_bytes;
 }
 
-ssize_t
-ply_read_chunk (int   fd,
-                void *buffer)
-{
-  assert (fd >= 0);
-  assert (!ply_fd_may_block (fd));
-
-  return ply_read_some_bytes (fd, buffer, 4096); 
-}
-
 bool 
 ply_fd_has_data (int fd)
 {
index f8135d7561618b597cbe4637d6eadab17e54345e..6c8c510692b43cc83da36fcd23705560320f5865 100644 (file)
@@ -47,8 +47,9 @@ bool ply_write (int         fd,
 bool ply_read (int     fd,
                void   *buffer,
                size_t  number_of_bytes); 
-ssize_t ply_read_chunk (int     fd,
-                        void   *chunk);
+ssize_t ply_read_some_bytes (int     fd,
+                             void   *buffer,
+                             size_t  max_bytes);
 
 bool ply_fd_has_data (int fd);
 bool ply_fd_can_take_data (int fd);