- tests are now performed in its own main tests.c
-
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
|
||||
|
||||
|
||||
status_t destroy(packet_t *this)
|
||||
static status_t destroy(packet_t *this)
|
||||
{
|
||||
pfree(this->data.ptr);
|
||||
pfree(this);
|
||||
@@ -37,6 +37,8 @@ packet_t *packet_create()
|
||||
{
|
||||
packet_t *this = alloc_thing(packet_t, "packet_t");
|
||||
|
||||
this->destroy = destroy;
|
||||
|
||||
this->data.len = 0;
|
||||
this->data.ptr = NULL;
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user