diff options
author | David Robillard <d@drobilla.net> | 2023-02-26 12:39:18 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 16:27:02 -0500 |
commit | 70277ccdb3035db83d81d942777c12a60c4aded3 (patch) | |
tree | 401d570c44167148cb282d1013ec1eaf4abe6283 /test | |
parent | febb30141356df83a56026bbb14099e3cb2c82fc (diff) | |
download | serd-70277ccdb3035db83d81d942777c12a60c4aded3.tar.gz serd-70277ccdb3035db83d81d942777c12a60c4aded3.tar.bz2 serd-70277ccdb3035db83d81d942777c12a60c4aded3.zip |
Rename string view fields
Diffstat (limited to 'test')
-rw-r--r-- | test/test_uri.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_uri.c b/test/test_uri.c index 61f432fd..65e12490 100644 --- a/test/test_uri.c +++ b/test/test_uri.c @@ -135,9 +135,9 @@ test_uri_from_string(void) static inline bool chunk_equals(const SerdStringView* a, const SerdStringView* b) { - return (!a->len && !b->len && !a->buf && !b->buf) || - (a->len && b->len && a->buf && b->buf && - !strncmp((const char*)a->buf, (const char*)b->buf, a->len)); + return (!a->length && !b->length && !a->data && !b->data) || + (a->length && b->length && a->data && b->data && + !strncmp((const char*)a->data, (const char*)b->data, a->length)); } static void |