Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ dnl ######################################################################

AC_PROG_GREP
AC_PROG_EGREP
: ${CFLAGS=""}
: ${CPPFLAGS=""}
AC_PROG_CC
AC_PROG_MKDIR_P
AC_EXEEXT
Expand Down Expand Up @@ -1283,8 +1285,8 @@ dnl ######################################################################
dnl Collect all the options
dnl ######################################################################

CORE_CPPFLAGS="$PCRE2_CPPFLAGS $OPENSSL_CPPFLAGS $LIBYAML_CPPFLAGS $CPPFLAGS"
CORE_CFLAGS="$PCRE2_CFLAGS $OPENSSL_CFLAGS $LIBYAML_CFLAGS $CFLAGS"
CORE_CPPFLAGS="$PCRE2_CPPFLAGS $OPENSSL_CPPFLAGS $LIBYAML_CPPFLAGS"
CORE_CFLAGS="$PCRE2_CFLAGS $OPENSSL_CFLAGS $LIBYAML_CFLAGS"
CORE_LDFLAGS="$PCRE2_LDFLAGS $OPENSSL_LDFLAGS $LIBYAML_LDFLAGS $LDFLAGS"
CORE_LIBS="$PCRE2_LIBS $OPENSSL_LIBS $LIBYAML_LIBS $LIBS"

Expand Down
2 changes: 1 addition & 1 deletion libutils/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ const char* BufferSearchAndReplace(Buffer *buffer, const char *pattern,
ret = pcre2_substitute(regex, (PCRE2_SPTR) BufferData(buffer), BufferSize(buffer),
0, subst_opts, match_data, NULL,
(PCRE2_SPTR) substitute, PCRE2_ZERO_TERMINATED,
result, &out_size);
(PCRE2_UCHAR8 *) result, &out_size);
if (ret == PCRE2_ERROR_NOMEMORY)
{
result = xrealloc(result, out_size);
Expand Down
4 changes: 2 additions & 2 deletions libutils/json-yaml.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static void JsonParseYamlData(yaml_parser_t *parser, JsonElement *element, const
if (key == NULL)
{
// save key
key = xstrdup(event.data.scalar.value);
key = xstrdup((const char *)event.data.scalar.value);
}
else
{
Expand Down Expand Up @@ -343,7 +343,7 @@ JsonParseError JsonParseYamlString(const char **data, JsonElement **json_out)
return JSON_PARSE_ERROR_LIBYAML_FAILURE;
}

yaml_parser_set_input_string(&parser, *data, strlen(*data));
yaml_parser_set_input_string(&parser, (const unsigned char *) *data, strlen(*data));

JsonElement *holder = JsonArrayCreate(1);
JsonParseYamlData(&parser, holder, 0);
Expand Down
Loading