From 48100e841f60a7c233bd0c1d111575947d29c6cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Vavrus=CC=8Ca?= Date: Thu, 11 Jan 2018 22:16:01 -0800 Subject: [PATCH] client: fixed minor linter problems --- client/kresc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/kresc.c b/client/kresc.c index 88a48808c..e9bc073e3 100644 --- a/client/kresc.c +++ b/client/kresc.c @@ -273,14 +273,14 @@ static unsigned char complete(EditLine * el, int ch) //Get position of last dot in current line (useful for parsing table). char *dot = strrchr(argv[0], '.'); - if (strncmp(type, "table", 5) && !dot) { + if (strncmp(type, "table", 5) != 0 && !dot) { //Line is not a name of some table and there is no dot in it. complete_globals(el, argv[0], pos); - } else if ((dot && !strncmp(type, "nil", 3)) - || !strncmp(type, "table", 5)) { + } else if ((dot && strncmp(type, "nil", 3) == 0) + || strncmp(type, "table", 5) == 0) { //Current line (or part of it) is a name of some table. complete_members(el, argv[0], type, pos, dot); - } else if (!strncmp(type, "function", 8)) { + } else if (strncmp(type, "function", 8) == 0) { //Current line is a function. complete_function(el); } -- 2.47.2