aboutsummaryrefslogtreecommitdiffstats
path: root/test
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 /test
parent287e07ebaa5fbcf9be0ce0cb1981798fc04bc9f1 (diff)
downloadserd-a3fd8b05a7b062256dd298d929fb99f8f3757f73.tar.gz
serd-a3fd8b05a7b062256dd298d929fb99f8f3757f73.tar.bz2
serd-a3fd8b05a7b062256dd298d929fb99f8f3757f73.zip
Make more pointer variables const
Diffstat (limited to 'test')
-rw-r--r--test/test_reader_writer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_reader_writer.c b/test/test_reader_writer.c
index 6b84b1e6..515d5e5b 100644
--- a/test/test_reader_writer.c
+++ b/test/test_reader_writer.c
@@ -164,8 +164,9 @@ test_writer(const char* const path)
assert(serd_writer_end_anon(writer, NULL));
assert(serd_writer_get_env(writer) == env);
- uint8_t buf[] = {0x80, 0, 0, 0, 0};
- SerdNode s = serd_node_from_string(SERD_URI, USTR(""));
+ const uint8_t buf[] = {0x80, 0, 0, 0, 0};
+
+ SerdNode s = serd_node_from_string(SERD_URI, USTR(""));
SerdNode p = serd_node_from_string(SERD_URI, USTR("http://example.org/pred"));
SerdNode o = serd_node_from_string(SERD_LITERAL, buf);