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

Deleted the unpad_packet struct.

Rev: src/unpad.c:1.8
Rev: src/unpad.h:1.7
parent ece9eb93
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
static int do_unpad(struct abstract_write **w, static int do_unpad(struct abstract_write **w,
struct lsh_string *packet) struct lsh_string *packet)
{ {
struct packet_unpad *closure = (struct packet_unpad *) *w; struct abstract_write_pipe *closure = (struct abstract_write_pipe *) *w;
UINT8 padding_length; UINT8 padding_length;
UINT32 payload_length; UINT32 payload_length;
...@@ -41,8 +41,8 @@ make_packet_unpad(struct abstract_write *continuation) ...@@ -41,8 +41,8 @@ make_packet_unpad(struct abstract_write *continuation)
{ {
struct packet_unpad *closure = xalloc(sizeof(struct packet_unpad)); struct packet_unpad *closure = xalloc(sizeof(struct packet_unpad));
closure->super.super.write = do_unpad; closure->super.write = do_unpad;
closure->super.next = continuation; closure->next = continuation;
return &closure->super.super; return &closure->super;
} }
...@@ -8,11 +8,13 @@ ...@@ -8,11 +8,13 @@
#include "abstract_io.h" #include "abstract_io.h"
#if 0
/* Input to the processor is a padded payload. */ /* Input to the processor is a padded payload. */
struct packet_unpad struct packet_unpad
{ {
struct abstract_write_pipe super; struct abstract_write_pipe super;
}; };
#endif
struct abstract_write * struct abstract_write *
make_packet_unpad(struct abstract_write *continuation); make_packet_unpad(struct abstract_write *continuation);
......
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