From 9324b472b045508245cfedfdd029e8865a69f054 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Tue, 13 May 2025 17:59:15 +0300 Subject: [PATCH] Minor changes --- src/common.h | 8 ++++---- src/names.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/common.h b/src/common.h index 5d4f83bf..5d7cfae7 100644 --- a/src/common.h +++ b/src/common.h @@ -809,16 +809,16 @@ COMMON_INLINE bool isfound (struct name const *c) { return (occurrence_option == 0 - ? (c)->found_count != 0 - : (c)->found_count == occurrence_option); + ? c->found_count != 0 + : c->found_count == occurrence_option); } COMMON_INLINE bool wasfound (struct name const *c) { return (occurrence_option == 0 - ? (c)->found_count != 0 - : occurrence_option <= (c)->found_count); + ? c->found_count != 0 + : occurrence_option <= c->found_count); } /* Module tar.c. */ diff --git a/src/names.c b/src/names.c index ced15aee..0d849fbf 100644 --- a/src/names.c +++ b/src/names.c @@ -1198,7 +1198,7 @@ name_gather (void) namelist = nametail = buffer; } else if (change_dir) - addname (0, change_dir, false, NULL); + addname (NULL, change_dir, false, NULL); } else { -- 2.47.3