diff options
author | David Robillard <d@drobilla.net> | 2022-07-14 11:50:43 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-07-18 20:18:28 -0400 |
commit | 55dc97a32eeeb42012ce1e7d28ed99ea537f4d2f (patch) | |
tree | c0fc78d78609c1bd3e880499bd0e80a4498b0be3 /test/lilv_test_uri_map.h | |
parent | 891f4044c92117517041c9e7ee4099b75bd493da (diff) | |
download | lilv-55dc97a32eeeb42012ce1e7d28ed99ea537f4d2f.tar.gz lilv-55dc97a32eeeb42012ce1e7d28ed99ea537f4d2f.tar.bz2 lilv-55dc97a32eeeb42012ce1e7d28ed99ea537f4d2f.zip |
Switch to meson build system
Diffstat (limited to 'test/lilv_test_uri_map.h')
-rw-r--r-- | test/lilv_test_uri_map.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/lilv_test_uri_map.h b/test/lilv_test_uri_map.h index 5f85c86..88c9107 100644 --- a/test/lilv_test_uri_map.h +++ b/test/lilv_test_uri_map.h @@ -23,14 +23,13 @@ #include "serd/serd.h" #include <assert.h> -#include <stddef.h> #include <stdint.h> #include <stdlib.h> #include <string.h> typedef struct { - char** uris; - size_t n_uris; + char** uris; + uint32_t n_uris; } LilvTestUriMap; static inline void @@ -43,7 +42,7 @@ lilv_test_uri_map_init(LilvTestUriMap* const map) static inline void lilv_test_uri_map_clear(LilvTestUriMap* const map) { - for (size_t i = 0; i < map->n_uris; ++i) { + for (uint32_t i = 0; i < map->n_uris; ++i) { free(map->uris[i]); } @@ -57,7 +56,7 @@ map_uri(LV2_URID_Map_Handle handle, const char* uri) { LilvTestUriMap* map = (LilvTestUriMap*)handle; - for (size_t i = 0; i < map->n_uris; ++i) { + for (uint32_t i = 0; i < map->n_uris; ++i) { if (!strcmp(map->uris[i], uri)) { return i + 1; } |