nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit d61c983dd00942b464eda60a70cfb185326e669b
parent ad04944bdf9f4c2dc936a5a843040bf6966e619a
Author: Arun <engineerarun@gmail.com>
Date:   Wed, 24 Apr 2024 18:12:53 +0530

Merge pull request #1872 from N-R-K/manpage_sort

clarify au and du in manpage
Diffstat:
Mnnn.1 | 2+-
Msrc/.clang-tidy | 3+++
Msrc/nnn.c | 2+-
3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/nnn.1 b/nnn.1 @@ -148,7 +148,7 @@ supports the following options: .Pp .Fl "T key" sort order - keys: 'a'u / 'd'u / 'e'xtension / 'r'everse / 's'ize / 't'ime / 'v'ersion + keys: 'a'pparent disk usage / 'd'isk usage / 'e'xtension / 'r'everse / 's'ize / 't'ime / 'v'ersion capitalize to reverse (except 'r') .Pp .Fl u diff --git a/src/.clang-tidy b/src/.clang-tidy @@ -22,10 +22,13 @@ Checks: > -readability-identifier-length, -readability-isolate-declaration, -readability-suspicious-call-argument, + -readability-avoid-nested-conditional-operator, -bugprone-easily-swappable-parameters, -bugprone-narrowing-conversions, -bugprone-reserved-identifier, -bugprone-switch-missing-default-case, + -bugprone-inc-dec-in-conditions, + -bugprone-multi-level-implicit-pointer-conversion WarningsAsErrors: '*' HeaderFilterRegex: '.*(?<!lookup3.c)$' diff --git a/src/nnn.c b/src/nnn.c @@ -925,7 +925,7 @@ static bool test_set_bit(uint_t nr) nr &= HASH_BITS; pthread_mutex_lock(&hardlink_mutex); - ullong_t *m = ((ullong_t *)ihashbmp) + (nr >> 6); + ullong_t *m = ihashbmp + (nr >> 6); if (*m & (1 << (nr & 63))) { pthread_mutex_unlock(&hardlink_mutex);