summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/grapper.c2
-rw-r--r--librdfa/iri.c2
-rw-r--r--librdfa/rdfa.c2
-rw-r--r--src/raptor_general.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/grapper.c b/examples/grapper.c
index 4db8811b..58e341b6 100644
--- a/examples/grapper.c
+++ b/examples/grapper.c
@@ -462,7 +462,7 @@ grapper_model_parse(grapper_state *state)
for(i = 0; i <= RAPTOR_OPTION_LAST; i++) {
if(state->options_set[i])
- raptor_parser_set_option(rdf_parser, i, NULL, state->options[i]);
+ raptor_parser_set_option(rdf_parser, (raptor_option)i, NULL, state->options[i]);
}
raptor_world_set_log_handler(state->world, state, grapper_model_log_handler);
diff --git a/librdfa/iri.c b/librdfa/iri.c
index ab922a81..62b30b83 100644
--- a/librdfa/iri.c
+++ b/librdfa/iri.c
@@ -36,7 +36,7 @@
char* rdfa_iri_get_base(const char* iri)
{
char* rval = NULL;
- char* eindex = 0;
+ const char* eindex = 0;
// search to see if there is iquery separator
eindex = strchr(iri, '?');
diff --git a/librdfa/rdfa.c b/librdfa/rdfa.c
index 6164ba1b..7660ac9e 100644
--- a/librdfa/rdfa.c
+++ b/librdfa/rdfa.c
@@ -1294,7 +1294,7 @@ static int rdfa_process_doctype(rdfacontext* context, size_t* bytes)
"\"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd\">";
// Create a working buffer for finding the DOCTYPE
- doctype_buffer = malloc(*bytes + 1);
+ doctype_buffer = (char*)malloc(*bytes + 1);
memcpy(doctype_buffer, context->working_buffer, *bytes);
doctype_buffer[*bytes + 1] = '\0';
doctype_position = strstr(doctype_buffer, "<!DOCTYPE");
diff --git a/src/raptor_general.c b/src/raptor_general.c
index d4bc84e7..e17a5bbe 100644
--- a/src/raptor_general.c
+++ b/src/raptor_general.c
@@ -653,7 +653,7 @@ raptor_vsnprintf(const char *message, va_list arguments)
const char*
raptor_basename(const char *name)
{
- char *p;
+ const char *p;
if((p = strrchr(name, '/')))
name = p+1;
else if((p = strrchr(name, '\\')))