From 902d171c5e79561a534c3cbb9cc547cd1fadeab7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 29 Jun 2017 12:53:23 -0400 Subject: Fix various clang-tidy issues --- src/node.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/node.c') diff --git a/src/node.c b/src/node.c index c25e06a0..42992917 100644 --- a/src/node.c +++ b/src/node.c @@ -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; } -- cgit v1.2.1