summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-07-07 23:42:11 -0400
committerDavid Robillard <d@drobilla.net>2016-07-07 23:42:11 -0400
commit9b5d9794760c45f337b81bf16fc2b48fb8a30aec (patch)
tree2c34509c4414e6cf37be3dc9764036f6070bc5fe /src
parentf205d626e0fbcd98f3c0459b739d6688b19b157a (diff)
downloadsratom-9b5d9794760c45f337b81bf16fc2b48fb8a30aec.tar.gz
sratom-9b5d9794760c45f337b81bf16fc2b48fb8a30aec.tar.bz2
sratom-9b5d9794760c45f337b81bf16fc2b48fb8a30aec.zip
Remove unused variable
Diffstat (limited to 'src')
-rw-r--r--src/sratom.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/sratom.c b/src/sratom.c
index 6231d4a..22f578d 100644
--- a/src/sratom.c
+++ b/src/sratom.c
@@ -592,21 +592,20 @@ read_node(Sratom* sratom,
size_t len = 0;
const char* str = (const char*)sord_node_get_string_counted(node, &len);
if (sord_node_get_type(node) == SORD_LITERAL) {
- char* endptr;
SordNode* datatype = sord_node_get_datatype(node);
const char* language = sord_node_get_language(node);
if (datatype) {
const char* type_uri = (const char*)sord_node_get_string(datatype);
if (!strcmp(type_uri, (const char*)NS_XSD "int") ||
!strcmp(type_uri, (const char*)NS_XSD "integer")) {
- lv2_atom_forge_int(forge, strtol(str, &endptr, 10));
+ lv2_atom_forge_int(forge, strtol(str, NULL, 10));
} else if (!strcmp(type_uri, (const char*)NS_XSD "long")) {
- lv2_atom_forge_long(forge, strtol(str, &endptr, 10));
+ lv2_atom_forge_long(forge, strtol(str, NULL, 10));
} else if (!strcmp(type_uri, (const char*)NS_XSD "float") ||
!strcmp(type_uri, (const char*)NS_XSD "decimal")) {
- lv2_atom_forge_float(forge, serd_strtod(str, &endptr));
+ lv2_atom_forge_float(forge, serd_strtod(str, NULL));
} else if (!strcmp(type_uri, (const char*)NS_XSD "double")) {
- lv2_atom_forge_double(forge, serd_strtod(str, &endptr));
+ lv2_atom_forge_double(forge, serd_strtod(str, NULL));
} else if (!strcmp(type_uri, (const char*)NS_XSD "boolean")) {
lv2_atom_forge_bool(forge, !strcmp(str, "true"));
} else if (!strcmp(type_uri, (const char*)NS_XSD "base64Binary")) {