From 2c8c1166d81a5c0fe6f335742ee24319ce60bfa8 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 26 Apr 2023 00:54:48 -0400 Subject: Use static storage * Almost everything returned by the system is immutable * Fixed block_device array initialization and alphabetical sorting * Free memory where possible --- common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common.h') diff --git a/common.h b/common.h index 832d85c..9cc3e6b 100644 --- a/common.h +++ b/common.h @@ -32,8 +32,8 @@ union regs_t { }; struct Block_Device { - char path[PATH_MAX]; - char model[254]; + char *path; + char *model; size_t size; }; -- cgit