diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-11 09:27:05 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-13 14:11:31 -0300 |
commit | 9d18533ca350565b7a67f4f416fa09d5110ceac1 (patch) | |
tree | c4b6239011d042ed57474b960ca59ed5e47dc214 /src/os/msgpack_rpc.c | |
parent | 60043da29fed70a9d4aa503ae6c73fd6f4e14a40 (diff) | |
download | rneovim-9d18533ca350565b7a67f4f416fa09d5110ceac1.tar.gz rneovim-9d18533ca350565b7a67f4f416fa09d5110ceac1.tar.bz2 rneovim-9d18533ca350565b7a67f4f416fa09d5110ceac1.zip |
Add new files to clint and fix reported errors
Diffstat (limited to 'src/os/msgpack_rpc.c')
-rw-r--r-- | src/os/msgpack_rpc.c | 7 |
1 files changed, 3 insertions, 4 deletions
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); |