aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-14 15:51:13 +0200
committerDavid Robillard <d@drobilla.net>2020-08-14 19:07:52 +0200
commit8827c4a88998b12cbfd2076c207d2d46e57b0b51 (patch)
treeb309e82d61f306251269f01735db1c6c811b7943
parent3f5ba5908117cf3351702c144a2509f4bf48d75b (diff)
downloadserd-8827c4a88998b12cbfd2076c207d2d46e57b0b51.tar.gz
serd-8827c4a88998b12cbfd2076c207d2d46e57b0b51.tar.bz2
serd-8827c4a88998b12cbfd2076c207d2d46e57b0b51.zip
Use SerdNodeFlags type everywhere
-rw-r--r--src/node.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/node.c b/src/node.c
index f4ca276d..13b51c71 100644
--- a/src/node.c
+++ b/src/node.c
@@ -46,10 +46,10 @@ serd_node_from_string(SerdType type, const uint8_t* str)
return SERD_NODE_NULL;
}
- uint32_t flags = 0;
- size_t buf_n_bytes = 0;
- const size_t buf_n_chars = serd_strlen(str, &buf_n_bytes, &flags);
- SerdNode ret = { str, buf_n_bytes, buf_n_chars, flags, type };
+ SerdNodeFlags flags = 0;
+ size_t buf_n_bytes = 0;
+ const size_t buf_n_chars = serd_strlen(str, &buf_n_bytes, &flags);
+ SerdNode ret = {str, buf_n_bytes, buf_n_chars, flags, type};
return ret;
}
@@ -60,9 +60,9 @@ serd_node_from_substring(SerdType type, const uint8_t* str, const size_t len)
return SERD_NODE_NULL;
}
- uint32_t flags = 0;
- size_t buf_n_bytes = 0;
- const size_t buf_n_chars = serd_substrlen(str, len, &buf_n_bytes, &flags);
+ SerdNodeFlags flags = 0;
+ size_t buf_n_bytes = 0;
+ const size_t buf_n_chars = serd_substrlen(str, len, &buf_n_bytes, &flags);
assert(buf_n_bytes <= len);
SerdNode ret = { str, buf_n_bytes, buf_n_chars, flags, type };
return ret;