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

Use NEW() macro.

Rev: src/blocking_write.c:1.5
parent f5593e3f
......@@ -6,6 +6,8 @@
#include <unistd.h>
#endif
#warning blocking_write.c is obsolete
static int do_write(struct abstract_write **w,
struct lsh_string *packet)
{
......@@ -37,8 +39,9 @@ static int do_write(struct abstract_write **w,
struct abstract_write *make_blocking_write_procesor(int fd)
{
struct blocking_write_processor *closure
= xalloc(sizeof(struct blocking_write_processor_processor));
struct blocking_write_processor *closure;
NEW(closure);
closure->p->f = do_write;
closure->fd = fd;
......
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