summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorantirez <antirez@metal.(none)>2010-12-10 19:22:13 +0100
committerantirez <antirez@metal.(none)>2010-12-10 19:22:13 +0100
commit5ce3a24dbaec87d3fc38c52cb2bcd631dff1a968 (patch)
treea7f984f01815750c81461f7373cca6d5876aadfa /deps
parentafd438dfff7112bec97b62640b6a2c4ec73fcf4e (diff)
downloadredis-5ce3a24dbaec87d3fc38c52cb2bcd631dff1a968.tar.gz
Linenoise updated to latest version
Diffstat (limited to 'deps')
-rw-r--r--deps/linenoise/linenoise.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/deps/linenoise/linenoise.c b/deps/linenoise/linenoise.c
index dd4341366..bfed5ea86 100644
--- a/deps/linenoise/linenoise.c
+++ b/deps/linenoise/linenoise.c
@@ -279,7 +279,9 @@ static int completeLine(int fd, const char *prompt, char *buf, size_t buflen, si
}
void linenoiseClearScreen(void) {
- write(STDIN_FILENO,"\x1b[H\x1b[2J",7);
+ if (write(STDIN_FILENO,"\x1b[H\x1b[2J",7) <= 0) {
+ /* nothing to do, just to avoid warning. */
+ }
}
static int linenoisePrompt(int fd, char *buf, size_t buflen, const char *prompt) {