From 7c5fe3abac6201a51d84c98275a2806cca056ea0 Mon Sep 17 00:00:00 2001 From: cryptonote-social Date: Fri, 25 Dec 2020 16:41:26 -0800 Subject: [PATCH] use C cast --- capi/niceapi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/capi/niceapi.h b/capi/niceapi.h index 186cc7e..7376d7b 100644 --- a/capi/niceapi.h +++ b/capi/niceapi.h @@ -196,8 +196,8 @@ next_chat_response next_chat() { // Queue a chat message for sending. Returns a code indicating if successful (0) or not. Right now // only success is returned. Message might not be sent immediately, e.g. miner may wait to send it // with the next mined share. -int send_chat(char *message) { - SendChat(const_cast(message)); +int send_chat(const char *message) { + SendChat((char*)message); return 0; }