diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-16 05:27:40 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-16 05:27:40 -0600 |
commit | fdc9b04c051c7a49dcc48866b5675e06b9a87abe (patch) | |
tree | 30008026f025696066024c8d32001cf938afb9cc /cmd/sbc_harness/fs_harness_uptime_txt.c | |
parent | 802ed1e3cd0252cafd1be2aada0addf4d3f7eb2e (diff) | |
parent | f56ae03840bb264163c4035eb72fbac938847638 (diff) |
Merge branch 'lukeshu/9p-fix-flush'
Diffstat (limited to 'cmd/sbc_harness/fs_harness_uptime_txt.c')
-rw-r--r-- | cmd/sbc_harness/fs_harness_uptime_txt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/sbc_harness/fs_harness_uptime_txt.c b/cmd/sbc_harness/fs_harness_uptime_txt.c index 1425bf9..dd5c681 100644 --- a/cmd/sbc_harness/fs_harness_uptime_txt.c +++ b/cmd/sbc_harness/fs_harness_uptime_txt.c @@ -5,10 +5,10 @@ */ #include <stdio.h> /* for snprintf() */ -#include <stdlib.h> /* for malloc(), free() */ #include <libhw/generic/alarmclock.h> #include <util9p/static.h> +#include <libmisc/alloc.h> /* for heap_alloc(), free() */ #include "fs_harness_uptime_txt.h" @@ -91,7 +91,7 @@ static lo_interface lib9p_srv_fio uptime_file_fopen(struct uptime_file *self, st assert(self); assert(ctx); - struct uptime_fio *ret = malloc(sizeof(struct uptime_fio)); + struct uptime_fio *ret = heap_alloc(1, struct uptime_fio); ret->parent = self; ret->buf_len = 0; |