diff --git a/doc/zmq_msg_get.txt b/doc/zmq_msg_get.txt index 7a41c72c..980c1add 100644 --- a/doc/zmq_msg_get.txt +++ b/doc/zmq_msg_get.txt @@ -40,6 +40,7 @@ EXAMPLE ------- .Receiving a multi-frame message ---- +zmq_msg_t frame; while (true) { // Create an empty 0MQ message to hold the message frame int rc = zmq_msg_init (&frame); @@ -53,7 +54,7 @@ while (true) { fprintf (stderr, "end\n"); break; } - zmq_msg_close (frame); + zmq_msg_close (&frame); } ---- diff --git a/doc/zmq_msg_more.txt b/doc/zmq_msg_more.txt index e5f6c11c..179f4d34 100644 --- a/doc/zmq_msg_more.txt +++ b/doc/zmq_msg_more.txt @@ -45,7 +45,7 @@ while (true) { fprintf (stderr, "end\n"); break; } - zmq_msg_close (part); + zmq_msg_close (&part); } ----