diff options
author | David Robillard <d@drobilla.net> | 2017-06-29 12:53:23 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-06-30 10:29:33 -0400 |
commit | 902d171c5e79561a534c3cbb9cc547cd1fadeab7 (patch) | |
tree | 20b2e3bdadb7e390ab33d5e1163ebdfe8b6280cf /src/node.c | |
parent | 195e4bcff3c4dfd3fe8bbf0df57d53ce89ca99e8 (diff) | |
download | serd-902d171c5e79561a534c3cbb9cc547cd1fadeab7.tar.gz serd-902d171c5e79561a534c3cbb9cc547cd1fadeab7.tar.bz2 serd-902d171c5e79561a534c3cbb9cc547cd1fadeab7.zip |
Fix various clang-tidy issues
Diffstat (limited to 'src/node.c')
-rw-r--r-- | src/node.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -33,16 +33,16 @@ SERD_API SerdNode -serd_node_from_string(SerdType type, const uint8_t* buf) +serd_node_from_string(SerdType type, const uint8_t* str) { - if (!buf) { + if (!str) { return SERD_NODE_NULL; } uint32_t flags = 0; size_t buf_n_bytes = 0; - const size_t buf_n_chars = serd_strlen(buf, &buf_n_bytes, &flags); - SerdNode ret = { buf, buf_n_bytes, buf_n_chars, flags, type }; + 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; } |