- tests are now performed in its own main tests.c
-
This commit is contained in:
1 parent
8ccd0b01f9
commit
fd9cabd4e6
13 files changed
+128
-103
No files matched your search
@@ -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