From: Ray Strode Date: Tue, 22 May 2007 20:07:10 +0000 (-0400) Subject: remove one of the functions just added, it was broken by design X-Git-Tag: 0.1.0~268 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6ed3f15d3ddb5db738587bb9c24cdddcf2427b4;p=thirdparty%2Fplymouth.git remove one of the functions just added, it was broken by design --- diff --git a/src/ply-utils.c b/src/ply-utils.c index c8803200..6ad5f572 100644 --- a/src/ply-utils.c +++ b/src/ply-utils.c @@ -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) { diff --git a/src/ply-utils.h b/src/ply-utils.h index f8135d75..6c8c5106 100644 --- a/src/ply-utils.h +++ b/src/ply-utils.h @@ -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);