diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 22:52:54 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 22:52:54 +0100 |
| commit | dcacc00e3750300617ba6e16eb346713f91a783a (patch) | |
| tree | 38e2d4fb5ed9d119711d4295c6eda4b014af73fd /examples/dte/block.c | |
| parent | 58dac10aeb8f5a041c46bddbeaf4c7966a99b998 (diff) | |
| download | crep-dcacc00e3750300617ba6e16eb346713f91a783a.tar.gz | |
Remove testing data
Diffstat (limited to 'examples/dte/block.c')
| -rw-r--r-- | examples/dte/block.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/examples/dte/block.c b/examples/dte/block.c deleted file mode 100644 index 3953571..0000000 --- a/examples/dte/block.c +++ /dev/null @@ -1,19 +0,0 @@ -#include <stdlib.h> -#include "block.h" -#include "util/xmalloc.h" - -Block *block_new(size_t alloc) -{ - Block *blk = xnew0(Block, 1); - alloc = round_size_to_next_multiple(alloc, BLOCK_ALLOC_MULTIPLE); - blk->data = xmalloc(alloc); - blk->alloc = alloc; - return blk; -} - -void block_free(Block *blk) -{ - list_del(&blk->node); - free(blk->data); - free(blk); -} |
