From 8ea779c8f72e72ee1a62a5703d32ddc79972761a Mon Sep 17 00:00:00 2001 From: Pieter Hintjens Date: Wed, 15 May 2013 14:11:15 +0200 Subject: [PATCH] Fixed sizeof usage in man pages --- doc/zmq_msg_recv.txt | 2 +- doc/zmq_recvmsg.txt | 2 +- doc/zmq_setsockopt.txt | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/zmq_msg_recv.txt b/doc/zmq_msg_recv.txt index 6aa43486..c3d6c54a 100644 --- a/doc/zmq_msg_recv.txt +++ b/doc/zmq_msg_recv.txt @@ -91,7 +91,7 @@ zmq_msg_close (&msg); .Receiving a multi-part message ---- int64_t more; -size_t more_size = sizeof more; +size_t more_size = sizeof (more); do { /* Create an empty 0MQ message to hold the message part */ zmq_msg_t part; diff --git a/doc/zmq_recvmsg.txt b/doc/zmq_recvmsg.txt index d6bf363f..352e62e0 100644 --- a/doc/zmq_recvmsg.txt +++ b/doc/zmq_recvmsg.txt @@ -89,7 +89,7 @@ zmq_msg_close (&msg); .Receiving a multi-part message ---- int64_t more; -size_t more_size = sizeof more; +size_t more_size = sizeof (more); do { /* Create an empty 0MQ message to hold the message part */ zmq_msg_t part; diff --git a/doc/zmq_setsockopt.txt b/doc/zmq_setsockopt.txt index 8f3f152b..83cd25ef 100644 --- a/doc/zmq_setsockopt.txt +++ b/doc/zmq_setsockopt.txt @@ -533,13 +533,13 @@ rc = zmq_setsockopt (socket, ZMQ_SUBSCRIBE, "ANIMALS.CATS", 12); int64_t affinity; /* Incoming connections on TCP port 5555 shall be handled by I/O thread 1 */ affinity = 1; -rc = zmq_setsockopt (socket, ZMQ_AFFINITY, &affinity, sizeof affinity); +rc = zmq_setsockopt (socket, ZMQ_AFFINITY, &affinity, sizeof (affinity)); assert (rc); rc = zmq_bind (socket, "tcp://lo:5555"); assert (rc); /* Incoming connections on TCP port 5556 shall be handled by I/O thread 2 */ affinity = 2; -rc = zmq_setsockopt (socket, ZMQ_AFFINITY, &affinity, sizeof affinity); +rc = zmq_setsockopt (socket, ZMQ_AFFINITY, &affinity, sizeof (affinity)); assert (rc); rc = zmq_bind (socket, "tcp://lo:5556"); assert (rc);