zmq: use std::string in zmqError()

pull/22200/head
fanquake 3 years ago
parent 68a89d7a46
commit 9a7cb57bbc
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1

@ -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));
}

@ -5,6 +5,8 @@
#ifndef BITCOIN_ZMQ_ZMQUTIL_H
#define BITCOIN_ZMQ_ZMQUTIL_H
void zmqError(const char* str);
#include <string>
void zmqError(const std::string& str);
#endif // BITCOIN_ZMQ_ZMQUTIL_H

Loading…
Cancel
Save