Skip to content

Commit

Permalink
Fixed sizeof usage in man pages
Browse files Browse the repository at this point in the history
  • Loading branch information
hintjens committed May 15, 2013
1 parent 593010f commit 8ea779c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/zmq_msg_recv.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion doc/zmq_recvmsg.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions doc/zmq_setsockopt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8ea779c

Please sign in to comment.