aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-09-27 18:38:19 -0400
committerDavid Robillard <d@drobilla.net>2024-09-27 18:38:19 -0400
commita3fd8b05a7b062256dd298d929fb99f8f3757f73 (patch)
tree4b7b7b249c7c3011e552cca9bc9f5dbfa2818144 /src/n3.c
parent287e07ebaa5fbcf9be0ce0cb1981798fc04bc9f1 (diff)
downloadserd-a3fd8b05a7b062256dd298d929fb99f8f3757f73.tar.gz
serd-a3fd8b05a7b062256dd298d929fb99f8f3757f73.tar.bz2
serd-a3fd8b05a7b062256dd298d929fb99f8f3757f73.zip
Make more pointer variables const
Diffstat (limited to 'src/n3.c')
-rw-r--r--src/n3.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/n3.c b/src/n3.c
index b3cfbb8a..460e0e9d 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -925,10 +925,10 @@ read_verb(SerdReader* const reader, Ref* const dest)
*/
*dest = push_node(reader, SERD_CURIE, "", 0);
- SerdStatus st = read_PN_PREFIX(reader, *dest);
- bool ate_dot = false;
- SerdNode* node = deref(reader, *dest);
- const int next = peek_byte(reader);
+ SerdStatus st = read_PN_PREFIX(reader, *dest);
+ bool ate_dot = false;
+ const SerdNode* const node = deref(reader, *dest);
+ const int next = peek_byte(reader);
if (!st && node->n_bytes == 1 && node->buf[0] == 'a' && next != ':' &&
!is_PN_CHARS_BASE((uint32_t)next)) {
pop_node(reader, *dest);
@@ -1540,7 +1540,7 @@ token_equals(SerdReader* const reader,
const char* const tok,
const size_t n)
{
- SerdNode* const node = deref(reader, ref);
+ const SerdNode* const node = deref(reader, ref);
if (!node || node->n_bytes != n) {
return false;
}