]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Minor changes
authorSergey Poznyakoff <gray@gnu.org>
Tue, 13 May 2025 14:59:15 +0000 (17:59 +0300)
committerSergey Poznyakoff <gray@gnu.org>
Tue, 13 May 2025 14:59:15 +0000 (17:59 +0300)
src/common.h
src/names.c

index 5d4f83bf8e776f23bc11a33bfd1956525b898de7..5d7cfae7e6a6f1b29f3d93c616f0f721b758c422 100644 (file)
@@ -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.  */
index ced15aeec52a3b68c3b75294986dc3f0c2b84fd9..0d849fbf490e981df221674cc5002f6dcd1669c7 100644 (file)
@@ -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
     {