aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/n3.c')
-rw-r--r--src/n3.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/n3.c b/src/n3.c
index 998dd2a6..411874a6 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -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