aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShav Kinderlehrer <[email protected]>2023-04-11 12:32:38 -0400
committerShav Kinderlehrer <[email protected]>2023-04-11 12:32:38 -0400
commitda0287ec63b2eeda4adeebc9f2bc13e4ebc82eaa (patch)
tree86a1f7c10d21065f08d9845198c66ccd04d9966a /include
parent41487c8ae6285b406150a4f6784dd0e3e33d54b3 (diff)
downloadlat-da0287ec63b2eeda4adeebc9f2bc13e4ebc82eaa.tar.gz
lat-da0287ec63b2eeda4adeebc9f2bc13e4ebc82eaa.zip
Move to size_t where practical
Diffstat (limited to 'include')
-rw-r--r--include/file.h2
-rw-r--r--include/util.h6
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