From 31a273fdd0c666cfda466e1273563a24a7b8a8bf Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 29 May 2022 20:09:33 +0530 Subject: [PATCH] Fix build break --- src/.clang-tidy | 2 +- src/nnn.c | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/.clang-tidy b/src/.clang-tidy index ef188b7b..60ee2616 100644 --- a/src/.clang-tidy +++ b/src/.clang-tidy @@ -11,5 +11,5 @@ CheckOptions: - key: fuchsia-restrict-system-includes.Includes value: '*,-stdint.h,-stdbool.h' - key: readability-function-size.StatementThreshold - value: '910' + value: '915' ... diff --git a/src/nnn.c b/src/nnn.c index b847eeb9..0c2b8107 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -6914,8 +6914,6 @@ nochange: } pent = &pdents[cur]; - r = FALSE; - if (g_state.selbm) { S_ISLNK(pent->mode) ? (realpath(pent->name, newpath) && xstrsncpy(path, lastdir, PATH_MAX)) @@ -6933,8 +6931,7 @@ nochange: goto nochange; } - cdprep(lastdir, lastname, path, newpath) - ? (presel = FILTER) : (watch = TRUE); + cdprep(lastdir, lastname, path, newpath) ? (presel = FILTER) : (watch = TRUE); goto begin; } @@ -6963,8 +6960,7 @@ nochange: clearfilter(); if (chdir(path) == -1 - || !run_plugin(&path, pent->name, - runfile, &lastname, &lastdir)) { + || !run_plugin(&path, pent->name, runfile, &lastname, &lastdir)) { DPRINTF_S("plugin failed!"); }