diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-04-26 00:54:48 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-04-26 00:54:58 -0400 |
commit | 2c8c1166d81a5c0fe6f335742ee24319ce60bfa8 (patch) | |
tree | c58e738644f9595fae67e2ade0ecec35f8b7eca4 /common.h | |
parent | e71c07b9d5cc1236ca08536ae052faa5fc6b9096 (diff) | |
download | whatami-2c8c1166d81a5c0fe6f335742ee24319ce60bfa8.tar.gz |
Use static storage
* Almost everything returned by the system is immutable
* Fixed block_device array initialization and alphabetical sorting
* Free memory where possible
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -32,8 +32,8 @@ union regs_t { }; struct Block_Device { - char path[PATH_MAX]; - char model[254]; + char *path; + char *model; size_t size; }; |