diff options
author | fanquake <fanquake@gmail.com> | 2021-06-08 13:21:08 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-06-09 19:25:07 +0800 |
commit | 9a7cb57bbc61b2dfb772f8486db2a44c1673983a (patch) | |
tree | f70b37f53fc646dd89fd99346ef1f3c193acb046 /src/zmq/zmqutil.cpp | |
parent | 68a89d7a46bf61c2156da3ad68d20095397b943b (diff) | |
download | bitcoin-9a7cb57bbc61b2dfb772f8486db2a44c1673983a.tar.xz |
zmq: use std::string in zmqError()
Diffstat (limited to 'src/zmq/zmqutil.cpp')
-rw-r--r-- | src/zmq/zmqutil.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/zmq/zmqutil.cpp b/src/zmq/zmqutil.cpp index f07a4ae9fd..cf05dd81ff 100644 --- a/src/zmq/zmqutil.cpp +++ b/src/zmq/zmqutil.cpp @@ -5,10 +5,12 @@ #include <zmq/zmqutil.h> #include <logging.h> - #include <zmq.h> -void zmqError(const char* str) +#include <cerrno> +#include <string> + +void zmqError(const std::string& str) { LogPrint(BCLog::ZMQ, "zmq: Error: %s, errno=%s\n", str, zmq_strerror(errno)); } |