aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/rspamc.cxx
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-09-17 14:57:05 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-09-17 14:57:05 +0100
commit0b848d655ff7e5bd77de06f6793d3b35bd66485b (patch)
tree9004a4aa564e0a92e094d61596b2465089deada5 /src/client/rspamc.cxx
parent4a8eb80e888f200cc76918b20db7766c236c5e48 (diff)
downloadrspamd-0b848d655ff7e5bd77de06f6793d3b35bd66485b.tar.gz
rspamd-0b848d655ff7e5bd77de06f6793d3b35bd66485b.zip
[Minor] Fix warning
Diffstat (limited to 'src/client/rspamc.cxx')
-rw-r--r--src/client/rspamc.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/rspamc.cxx b/src/client/rspamc.cxx
index cb847bf5b..9719445b6 100644
--- a/src/client/rspamc.cxx
+++ b/src/client/rspamc.cxx
@@ -1034,8 +1034,8 @@ rspamc_symbols_output(FILE *out, ucl_object_t *obj)
fmt::print(out, "Message - {}: {}\n",
ucl_object_key(cmesg), ucl_object_tostring(cmesg));
} else {
- unsigned char *rendered_message;
- rendered_message = ucl_object_emit(cmesg, UCL_EMIT_JSON_COMPACT);
+ char *rendered_message;
+ rendered_message = (char *)ucl_object_emit(cmesg, UCL_EMIT_JSON_COMPACT);
fmt::print(out, "Message - {}: {:.60}\n",
ucl_object_key(cmesg), rendered_message);
free(rendered_message);