From 9d18533ca350565b7a67f4f416fa09d5110ceac1 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Sun, 11 May 2014 09:27:05 -0300 Subject: Add new files to clint and fix reported errors --- src/os/msgpack_rpc.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/os/msgpack_rpc.c') diff --git a/src/os/msgpack_rpc.c b/src/os/msgpack_rpc.c index 0d5e3ef5da..e429bf0519 100644 --- a/src/os/msgpack_rpc.c +++ b/src/os/msgpack_rpc.c @@ -17,13 +17,13 @@ void msgpack_rpc_call(msgpack_object *req, msgpack_packer *res) // Validate the basic structure of the msgpack-rpc payload if (req->type != MSGPACK_OBJECT_ARRAY) { - msgpack_pack_int(res, 0); // no message id yet + msgpack_pack_int(res, 0); // no message id yet msgpack_rpc_error("Request is not an array", res); return; } if (req->via.array.size != 4) { - msgpack_pack_int(res, 0); // no message id yet + msgpack_pack_int(res, 0); // no message id yet char error_msg[256]; snprintf(error_msg, sizeof(error_msg), @@ -33,7 +33,7 @@ void msgpack_rpc_call(msgpack_object *req, msgpack_packer *res) } if (req->via.array.ptr[1].type != MSGPACK_OBJECT_POSITIVE_INTEGER) { - msgpack_pack_int(res, 0); // no message id yet + msgpack_pack_int(res, 0); // no message id yet msgpack_rpc_error("Id must be a positive integer", res); } @@ -278,7 +278,6 @@ void msgpack_rpc_from_tabpage(Tabpage result, msgpack_packer *res) void msgpack_rpc_from_object(Object result, msgpack_packer *res) { - switch (result.type) { case kObjectTypeNil: msgpack_pack_nil(res); -- cgit