aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/msgpack_rpc/server.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-05-31 13:49:04 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-05-31 13:49:04 -0400
commit3dd3d129d3a4644c3f2c4de4df4b2ceda380448e (patch)
tree0c7358f88da7baec437c89f937e105a1e8adfbf9 /src/nvim/msgpack_rpc/server.c
parent4276a03e8185e9498e4b7983bf02e151c4b4b197 (diff)
parent77540a04582927e842c7d5522bb862756da2cbba (diff)
downloadrneovim-3dd3d129d3a4644c3f2c4de4df4b2ceda380448e.tar.gz
rneovim-3dd3d129d3a4644c3f2c4de4df4b2ceda380448e.tar.bz2
rneovim-3dd3d129d3a4644c3f2c4de4df4b2ceda380448e.zip
Merge pull request #4844 from ZyX-I/rename-main-loop
Rename main loop variable from loop to main_loop
Diffstat (limited to 'src/nvim/msgpack_rpc/server.c')
-rw-r--r--src/nvim/msgpack_rpc/server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/msgpack_rpc/server.c b/src/nvim/msgpack_rpc/server.c
index 6cc56ba3dd..abbd3e8aff 100644
--- a/src/nvim/msgpack_rpc/server.c
+++ b/src/nvim/msgpack_rpc/server.c
@@ -12,6 +12,7 @@
#include "nvim/eval.h"
#include "nvim/garray.h"
#include "nvim/vim.h"
+#include "nvim/main.h"
#include "nvim/memory.h"
#include "nvim/log.h"
#include "nvim/fileio.h"
@@ -108,7 +109,7 @@ int server_start(const char *endpoint)
}
SocketWatcher *watcher = xmalloc(sizeof(SocketWatcher));
- socket_watcher_init(&loop, watcher, endpoint, NULL);
+ socket_watcher_init(&main_loop, watcher, endpoint, NULL);
// Check if a watcher for the endpoint already exists
for (int i = 0; i < watchers.ga_len; i++) {