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

* src/write_buffer.c (make_write_buffer): Renamed

write_buffer_alloc to make_write_buffer. Updated callers.

Rev: src/io.c:1.129
Rev: src/write_buffer.c:1.22
Rev: src/write_buffer.h:1.20
parent f56dfbb8
...@@ -1682,7 +1682,7 @@ io_read_write(struct lsh_fd *fd, ...@@ -1682,7 +1682,7 @@ io_read_write(struct lsh_fd *fd,
fd->want_read = !!read; fd->want_read = !!read;
/* Writing */ /* Writing */
fd->write_buffer = write_buffer_alloc(block_size); fd->write_buffer = make_write_buffer(block_size);
fd->write = &io_write_callback; fd->write = &io_write_callback;
fd->prepare = do_write_prepare; fd->prepare = do_write_prepare;
...@@ -1718,7 +1718,7 @@ io_write(struct lsh_fd *fd, ...@@ -1718,7 +1718,7 @@ io_write(struct lsh_fd *fd,
trace("io.c: Preparing fd %i for writing\n", fd->fd); trace("io.c: Preparing fd %i for writing\n", fd->fd);
/* Writing */ /* Writing */
fd->write_buffer = write_buffer_alloc(block_size); fd->write_buffer = make_write_buffer(block_size);
fd->write = &io_write_callback; fd->write = &io_write_callback;
fd->prepare = do_write_prepare; fd->prepare = do_write_prepare;
......
...@@ -160,7 +160,8 @@ void write_buffer_close(struct write_buffer *buffer) ...@@ -160,7 +160,8 @@ void write_buffer_close(struct write_buffer *buffer)
buffer->closed = 1; buffer->closed = 1;
} }
struct write_buffer *write_buffer_alloc(UINT32 size) struct write_buffer *
make_write_buffer(UINT32 size)
{ {
NEW(write_buffer, res); NEW(write_buffer, res);
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
(end . UINT32))) (end . UINT32)))
*/ */
struct write_buffer *write_buffer_alloc(UINT32 size); struct write_buffer *make_write_buffer(UINT32 size);
int write_buffer_pre_write(struct write_buffer *buffer); int write_buffer_pre_write(struct write_buffer *buffer);
void write_buffer_consume(struct write_buffer *buffer, UINT32 size); void write_buffer_consume(struct write_buffer *buffer, UINT32 size);
void write_buffer_close(struct write_buffer *buffer); void write_buffer_close(struct write_buffer *buffer);
......
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