Commit bae30f92 authored by Niels Möller's avatar Niels Möller
Browse files

* src/write_buffer.c (write_buffer_close): Deleted. The closed

flag is now set by close_fd and close_fd_nicely. Everybody else
should be using those functions.

Rev: src/write_buffer.c:1.26
Rev: src/write_buffer.h:1.22
parent 0f4f9fc7
......@@ -154,15 +154,6 @@ void write_buffer_consume(struct write_buffer *buffer, UINT32 size)
FLOW_CONTROL_REPORT(buffer->report, size);
}
/* FIXME: Delete this function, move the logic to close_fd_nicely or
* something instead. */
void write_buffer_close(struct write_buffer *buffer)
{
buffer->closed = 1;
if (buffer->empty)
close_fd(buffer->fd);
}
struct write_buffer *
make_write_buffer(struct lsh_fd *fd, UINT32 size)
{
......
......@@ -78,6 +78,5 @@ make_write_buffer(struct lsh_fd *fd, UINT32 size);
int write_buffer_pre_write(struct write_buffer *buffer);
void write_buffer_consume(struct write_buffer *buffer, UINT32 size);
void write_buffer_close(struct write_buffer *buffer);
#endif /* LSH_WRITE_BUFFER_H_INCLUDED */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment