diff options
author | 2022-05-25 18:20:38 -0400 | |
---|---|---|
committer | 2022-05-25 18:20:38 -0400 | |
commit | 3dbb2ce2ea8b12867db0e24d4bd6c7c6501f5d5d (patch) | |
tree | 34b4c2f32dca91660db151412cd94ce5a4d58ece /uuid | |
parent | a902c812e98dd53cf9f16b5175f7c1f87e780b53 (diff) | |
download | trustcache-3dbb2ce2ea8b12867db0e24d4bd6c7c6501f5d5d.tar.gz trustcache-3dbb2ce2ea8b12867db0e24d4bd6c7c6501f5d5d.tar.zst trustcache-3dbb2ce2ea8b12867db0e24d4bd6c7c6501f5d5d.zip |
Fix some portability issues
Diffstat (limited to 'uuid')
-rw-r--r-- | uuid/unparse.c | 2 | ||||
-rw-r--r-- | uuid/uuid.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/uuid/unparse.c b/uuid/unparse.c index 3beca91..3f0e66f 100644 --- a/uuid/unparse.c +++ b/uuid/unparse.c @@ -39,7 +39,7 @@ void uuid_unparse(const uuid_t uu, char *out) { const uint8_t *uuid_array = (const uint8_t *)uu; - int uuid_index; + unsigned int uuid_index; static const char *fmt = "0123456789ABCDEF"; for ( uuid_index = 0; uuid_index < sizeof(uuid_t); ++uuid_index ) { diff --git a/uuid/uuid.h b/uuid/uuid.h index a4be9a5..2ffbee7 100644 --- a/uuid/uuid.h +++ b/uuid/uuid.h @@ -1,7 +1,7 @@ #ifndef _UUID_H_ #define _UUID_H_ -#include <sys/types.h> +#include <stdint.h> typedef unsigned char uuid_t[16]; |