aboutsummaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-05-11 09:27:05 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-13 14:11:31 -0300
commit9d18533ca350565b7a67f4f416fa09d5110ceac1 (patch)
treec4b6239011d042ed57474b960ca59ed5e47dc214 /src/os
parent60043da29fed70a9d4aa503ae6c73fd6f4e14a40 (diff)
downloadrneovim-9d18533ca350565b7a67f4f416fa09d5110ceac1.tar.gz
rneovim-9d18533ca350565b7a67f4f416fa09d5110ceac1.tar.bz2
rneovim-9d18533ca350565b7a67f4f416fa09d5110ceac1.zip
Add new files to clint and fix reported errors
Diffstat (limited to 'src/os')
-rw-r--r--src/os/msgpack_rpc.c7
-rw-r--r--src/os/msgpack_rpc.h6
2 files changed, 6 insertions, 7 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);
diff --git a/src/os/msgpack_rpc.h b/src/os/msgpack_rpc.h
index 8d2c6e767b..7f754bfca1 100644
--- a/src/os/msgpack_rpc.h
+++ b/src/os/msgpack_rpc.h
@@ -1,5 +1,5 @@
-#ifndef NEOVIM_MSGPACK_RPC_H
-#define NEOVIM_MSGPACK_RPC_H
+#ifndef NEOVIM_OS_MSGPACK_RPC_H
+#define NEOVIM_OS_MSGPACK_RPC_H
#include <stdint.h>
#include <stdbool.h>
@@ -103,5 +103,5 @@ void msgpack_rpc_free_array(Array value);
void msgpack_rpc_free_dictionary(Dictionary value);
-#endif // NEOVIM_MSGPACK_RPC_H
+#endif // NEOVIM_OS_MSGPACK_RPC_H