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

RAndom functions are represented as closures.

Rev: src/pad.c:1.8
parent b944b290
......@@ -44,8 +44,7 @@ static int do_pad(struct abstract_write **w,
struct abstract_write *
make_packet_pad(struct abstract_write *continuation,
unsigned block_size,
random_function random,
void *state)
random_function random)
{
struct packet_pad *closure = xalloc(sizeof(struct packet_pad));
......@@ -53,7 +52,6 @@ make_packet_pad(struct abstract_write *continuation,
closure->super.next = continuation;
closure->block_size = block_size;
closure->random = random;
closure->state = state;
return &closure->super.super;
}
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