From 2698cfc254e0df2069b42b613631b9d39cac668c Mon Sep 17 00:00:00 2001 From: Clark Li Date: Tue, 18 Jul 2017 23:22:56 +0930 Subject: [PATCH] Fix return type in C quickstart examples --- QUICKSTART-C.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/QUICKSTART-C.md b/QUICKSTART-C.md index b244a76c..808b64ba 100644 --- a/QUICKSTART-C.md +++ b/QUICKSTART-C.md @@ -96,7 +96,7 @@ int main(void) { /* deserializes it. */ msgpack_unpacked msg; msgpack_unpacked_init(&msg); - bool success = msgpack_unpack_next(&msg, buffer->data, buffer->size, NULL); + msgpack_unpack_return ret = msgpack_unpack_next(&msg, buffer->data, buffer->size, NULL); /* prints the deserialized object. */ msgpack_object obj = msg.data; @@ -119,7 +119,7 @@ int main(void) { /* creates buffer and serializer instance. */ msgpack_sbuffer* buffer = msgpack_sbuffer_new(); msgpack_packer* pk = msgpack_packer_new(buffer, msgpack_sbuffer_write); - + int j; for(j = 0; j<23; j++) { @@ -137,7 +137,7 @@ int main(void) { /* deserializes it. */ msgpack_unpacked msg; msgpack_unpacked_init(&msg); - bool success = msgpack_unpack_next(&msg, buffer->data, buffer->size, NULL); + msgpack_unpack_return ret = msgpack_unpack_next(&msg, buffer->data, buffer->size, NULL); /* prints the deserialized object. */ msgpack_object obj = msg.data;