diff options
Diffstat (limited to 'src/n3.c')
-rw-r--r-- | src/n3.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -1006,11 +1006,10 @@ read_BLANK_NODE_LABEL(SerdReader* const reader, return SERD_ERR_BAD_SYNTAX; } - const Ref ref = *dest = - push_node(reader, - SERD_BLANK, - reader->bprefix ? (char*)reader->bprefix : "", - reader->bprefix_len); + const Ref ref = *dest = push_node(reader, + SERD_BLANK, + reader->bprefix ? reader->bprefix : "", + reader->bprefix_len); int c = peek_byte(reader); // First: (PN_CHARS | '_' | [0-9]) if (is_digit(c) || c == '_') { @@ -1049,7 +1048,6 @@ read_BLANK_NODE_LABEL(SerdReader* const reader, } } } - return SERD_SUCCESS; } @@ -1578,7 +1576,7 @@ tokcmp(SerdReader* const reader, return -1; } - return serd_strncasecmp((const char*)node->buf, tok, n); + return serd_strncasecmp(node->buf, tok, n); } SerdStatus |