diff options
author | Eliseo Martínez <eliseomarmol@gmail.com> | 2015-03-22 11:45:48 +0100 |
---|---|---|
committer | Eliseo Martínez <eliseomarmol@gmail.com> | 2015-03-22 11:45:48 +0100 |
commit | 4bc62c76c70b86400f60d6c7de98d271b664bec2 (patch) | |
tree | b87ff48d46eebd7c0361bce135f3a7e0420920b8 /src/nvim/fileio.c | |
parent | 4fc0291c730f3c42df4692dd91b09cfd806479d7 (diff) | |
parent | 44b563409e8c67d4116ff2e2b726cda4e4dc03f6 (diff) | |
download | rneovim-4bc62c76c70b86400f60d6c7de98d271b664bec2.tar.gz rneovim-4bc62c76c70b86400f60d6c7de98d271b664bec2.tar.bz2 rneovim-4bc62c76c70b86400f60d6c7de98d271b664bec2.zip |
Merge #2184: Fix coverity issues. (6)
Reviewed-by: oni-link <knil.ino@gmail.com>
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 9d4c990f3a..799a6a2a50 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -7416,7 +7416,7 @@ long read_eintr(int fd, void *buf, size_t bufsize) long ret; for (;; ) { - ret = vim_read(fd, buf, bufsize); + ret = read(fd, buf, bufsize); if (ret >= 0 || errno != EINTR) break; } @@ -7435,7 +7435,7 @@ long write_eintr(int fd, void *buf, size_t bufsize) /* Repeat the write() so long it didn't fail, other than being interrupted * by a signal. */ while (ret < (long)bufsize) { - wlen = vim_write(fd, (char *)buf + ret, bufsize - ret); + wlen = write(fd, (char *)buf + ret, bufsize - ret); if (wlen < 0) { if (errno != EINTR) break; |