summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReini Urban <rurban@cpanel.net>2016-11-20 17:55:52 +0100
committerTina Müller <cpan2@tinita.de>2018-07-18 21:26:40 +0200
commit5b8859f728655747e01f202f71d52d863d18079e (patch)
treef937d526ad39227386f909f6e574f4cea3cfbb5f
parent551ad48994360f994af0649686885aa3946e029f (diff)
downloadlibyaml-git-5b8859f728655747e01f202f71d52d863d18079e.tar.gz
fix C++ g++-6 errors
yaml_emitter_write_indicator const char *indicator
-rw-r--r--src/emitter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emitter.c b/src/emitter.c
index 9dc27cb..b9392e4 100644
--- a/src/emitter.c
+++ b/src/emitter.c
@@ -221,7 +221,7 @@ yaml_emitter_write_indent(yaml_emitter_t *emitter);
static int
yaml_emitter_write_indicator(yaml_emitter_t *emitter,
- char *indicator, int need_whitespace,
+ const char *indicator, int need_whitespace,
int is_whitespace, int is_indention);
static int
@@ -1777,7 +1777,7 @@ yaml_emitter_write_indent(yaml_emitter_t *emitter)
static int
yaml_emitter_write_indicator(yaml_emitter_t *emitter,
- char *indicator, int need_whitespace,
+ const char *indicator, int need_whitespace,
int is_whitespace, int is_indention)
{
size_t indicator_length;
@@ -2174,7 +2174,7 @@ yaml_emitter_write_block_scalar_hints(yaml_emitter_t *emitter,
yaml_string_t string)
{
char indent_hint[2];
- char *chomp_hint = NULL;
+ const char *chomp_hint = NULL;
if (IS_SPACE(string) || IS_BREAK(string))
{