From: Marek VavrusÌŒa Date: Fri, 12 Jan 2018 06:16:01 +0000 (-0800) Subject: client: fixed minor linter problems X-Git-Tag: v2.0.0~36^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48100e841f60a7c233bd0c1d111575947d29c6cc;p=thirdparty%2Fknot-resolver.git client: fixed minor linter problems --- 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); }