diff options
| author | Ray Strode <rstrode@redhat.com> | 2007-05-22 16:07:10 -0400 |
|---|---|---|
| committer | Ray Strode <rstrode@redhat.com> | 2007-05-22 16:07:10 -0400 |
| commit | d6ed3f15d3ddb5db738587bb9c24cdddcf2427b4 (patch) | |
| tree | 697f40396c5f6bead15fb35961b754e802bad604 /src | |
| parent | 9f06aa1a5c19321d521d265f8685774f960f0e0d (diff) | |
remove one of the functions just added, it was broken by design
Diffstat (limited to 'src')
| -rw-r--r-- | src/ply-utils.c | 12 | ||||
| -rw-r--r-- | src/ply-utils.h | 5 |
2 files changed, 4 insertions, 13 deletions
diff --git a/src/ply-utils.c b/src/ply-utils.c index c880320..6ad5f57 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 f8135d7..6c8c510 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); |
