From 5e60861c65b84ef7569a26920a7ff2401c1e14d0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 16 Mar 2016 16:21:20 -0400 Subject: Use char* for strings in public API The constant casting just makes user code a mess, for no benefit. --- src/n3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/n3.c') diff --git a/src/n3.c b/src/n3.c index 37fe995e..3791e85f 100644 --- a/src/n3.c +++ b/src/n3.c @@ -851,7 +851,7 @@ read_BLANK_NODE_LABEL(SerdReader* reader, bool* ate_dot) eat_byte_safe(reader, '_'); eat_byte_check(reader, ':'); Ref ref = push_node(reader, SERD_BLANK, - reader->bprefix ? (char*)reader->bprefix : "", + reader->bprefix ? reader->bprefix : "", reader->bprefix_len); uint8_t c = peek_byte(reader); // First: (PN_CHARS | '_' | [0-9]) -- cgit v1.2.1