diff options
author | Shav Kinderlehrer <[email protected]> | 2023-04-11 12:32:38 -0400 |
---|---|---|
committer | Shav Kinderlehrer <[email protected]> | 2023-04-11 12:32:38 -0400 |
commit | da0287ec63b2eeda4adeebc9f2bc13e4ebc82eaa (patch) | |
tree | 86a1f7c10d21065f08d9845198c66ccd04d9966a /include | |
parent | 41487c8ae6285b406150a4f6784dd0e3e33d54b3 (diff) | |
download | lat-da0287ec63b2eeda4adeebc9f2bc13e4ebc82eaa.tar.gz lat-da0287ec63b2eeda4adeebc9f2bc13e4ebc82eaa.zip |
Move to size_t where practical
Diffstat (limited to 'include')
-rw-r--r-- | include/file.h | 2 | ||||
-rw-r--r-- | include/util.h | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/include/file.h b/include/file.h index 0d2e791..9758fad 100644 --- a/include/file.h +++ b/include/file.h @@ -4,7 +4,7 @@ #define FILE_H struct filedata { int lc; - unsigned len; + size_t len; char *buf; }; diff --git a/include/util.h b/include/util.h index 9554605..f77e226 100644 --- a/include/util.h +++ b/include/util.h @@ -1,8 +1,10 @@ #ifndef LIB_H #define LIB_H +#include <stddef.h> + void die(const char *message); -char *formatBytes(unsigned bytes, float *rounded); +char *formatBytes(size_t bytes, float *rounded); -int intlen(unsigned i); +int intlen(size_t i); #endif |