]> Dogcows Code - chaz/tar/blobdiff - src/common.h
tar: port ISFOUND, WASFOUND to C89
[chaz/tar] / src / common.h
index 3cc2011508758d09a8f5e881bc02fe236d49a36d..20cbb6447a80b46da2e4aba470e1fcea6896df11 100644 (file)
@@ -748,10 +748,12 @@ bool is_avoided_name (char const *name);
 
 bool contains_dot_dot (char const *name);
 
-#define ISFOUND(c) ((occurrence_option == 0) ? (c)->found_count : \
-                    (c)->found_count == occurrence_option)
-#define WASFOUND(c) ((occurrence_option == 0) ? (c)->found_count : \
-                     (c)->found_count >= occurrence_option)
+#define ISFOUND(c) (occurrence_option == 0                     \
+                   ? (c)->found_count != 0                     \
+                   : (c)->found_count == occurrence_option)
+#define WASFOUND(c) (occurrence_option == 0                    \
+                    ? (c)->found_count != 0                    \
+                    : (c)->found_count >= occurrence_option)
 
 /* Module tar.c.  */
 
This page took 0.01726 seconds and 4 git commands to generate.