aboutsummaryrefslogtreecommitdiff
path: root/src/zmq
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-04-30 19:52:00 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-05-04 06:55:30 +0200
commitfaece47c4706783e0460ed977390a44630b2d44c (patch)
treeec86896e9ef5d37816a454a72fa5c98246c0cf99 /src/zmq
parentface9611093377e8502d91f2ff56f9319a56357c (diff)
downloadbitcoin-faece47c4706783e0460ed977390a44630b2d44c.tar.xz
refactor: Avoid &foo[0] on C-Style arrays
This is confusing at best when parts of a class use the redundant operators and other parts do not.
Diffstat (limited to 'src/zmq')
-rw-r--r--src/zmq/zmqpublishnotifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zmq/zmqpublishnotifier.cpp b/src/zmq/zmqpublishnotifier.cpp
index 25afa94d0f..6ae866cc07 100644
--- a/src/zmq/zmqpublishnotifier.cpp
+++ b/src/zmq/zmqpublishnotifier.cpp
@@ -168,7 +168,7 @@ bool CZMQAbstractPublishNotifier::SendZmqMessage(const char *command, const void
/* send three parts, command & data & a LE 4byte sequence number */
unsigned char msgseq[sizeof(uint32_t)];
- WriteLE32(&msgseq[0], nSequence);
+ WriteLE32(msgseq, nSequence);
int rc = zmq_send_multipart(psocket, command, strlen(command), data, size, msgseq, (size_t)sizeof(uint32_t), nullptr);
if (rc == -1)
return false;