Compile mysql_binlog and mysql_utils as C++
This commit is contained in:
@ -38,7 +38,8 @@ add_library(maxscale-common SHARED
|
|||||||
thread.cc
|
thread.cc
|
||||||
users.cc
|
users.cc
|
||||||
utils.cc
|
utils.cc
|
||||||
mysql_utils.c mysql_binlog.c modulecmd.c)
|
mysql_utils.cc
|
||||||
|
mysql_binlog.cc modulecmd.c)
|
||||||
|
|
||||||
if(WITH_JEMALLOC)
|
if(WITH_JEMALLOC)
|
||||||
target_link_libraries(maxscale-common ${JEMALLOC_LIBRARIES})
|
target_link_libraries(maxscale-common ${JEMALLOC_LIBRARIES})
|
||||||
|
@ -117,7 +117,7 @@ uint64_t mxs_leint_consume(uint8_t ** c)
|
|||||||
char* mxs_lestr_consume_dup(uint8_t** c)
|
char* mxs_lestr_consume_dup(uint8_t** c)
|
||||||
{
|
{
|
||||||
uint64_t slen = mxs_leint_consume(c);
|
uint64_t slen = mxs_leint_consume(c);
|
||||||
char *str = MXS_MALLOC((slen + 1) * sizeof(char));
|
char *str = (char*)MXS_MALLOC((slen + 1) * sizeof(char));
|
||||||
|
|
||||||
if (str)
|
if (str)
|
||||||
{
|
{
|
Reference in New Issue
Block a user