diff options
author | David Robillard <d@drobilla.net> | 2018-12-27 14:16:31 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-12-27 14:16:31 -0500 |
commit | c4a82520cebb3a7d68a936c2101d0e004deb8826 (patch) | |
tree | 91e4fcee26d5a29d165c1aa1ad2d3dc00ecea8b8 | |
parent | edf1a117c28a799f5f2f276da673e84a6d941b6d (diff) | |
download | sratom-c4a82520cebb3a7d68a936c2101d0e004deb8826.tar.gz sratom-c4a82520cebb3a7d68a936c2101d0e004deb8826.tar.bz2 sratom-c4a82520cebb3a7d68a936c2101d0e004deb8826.zip |
Make unnecessary pointer argument a value
-rw-r--r-- | src/sratom.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sratom.c b/src/sratom.c index e101819..7b00557 100644 --- a/src/sratom.c +++ b/src/sratom.c @@ -176,13 +176,13 @@ list_append(Sratom* sratom, static void list_end(SerdStatementSink sink, void* handle, - unsigned* flags, + const unsigned flags, SerdNode* s, SerdNode* p) { // _:node rdf:rest rdf:nil const SerdNode nil = serd_node_from_string(SERD_URI, NS_RDF "nil"); - sink(handle, *flags, NULL, s, p, &nil, NULL, NULL); + sink(handle, flags, NULL, s, p, &nil, NULL, NULL); } static void @@ -369,7 +369,7 @@ sratom_write(Sratom* sratom, list_append(sratom, unmap, &flags, &id, &p, &node, i->size, i->type, LV2_ATOM_BODY(i)); } - list_end(sratom->write_statement, sratom->handle, &flags, &id, &p); + list_end(sratom->write_statement, sratom->handle, flags, &id, &p); if (sratom->end_anon) { sratom->end_anon(sratom->handle, &id); } @@ -389,7 +389,7 @@ sratom_write(Sratom* sratom, list_append(sratom, unmap, &flags, &id, &p, &node, vec->child_size, vec->child_type, i); } - list_end(sratom->write_statement, sratom->handle, &flags, &id, &p); + list_end(sratom->write_statement, sratom->handle, flags, &id, &p); if (sratom->end_anon) { sratom->end_anon(sratom->handle, &id); } @@ -430,7 +430,7 @@ sratom_write(Sratom* sratom, sratom->atom_Event, ev); } - list_end(sratom->write_statement, sratom->handle, &flags, &id, &p); + list_end(sratom->write_statement, sratom->handle, flags, &id, &p); if (sratom->end_anon && subject && predicate) { sratom->end_anon(sratom->handle, &id); } |