diff lib/fts.c @ 12772:2ea3e3fab7ee

define STREQ(a,b) consistently, removing useless parentheses #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized, since the only risk is that "a" or "b" contains an unparenthesized comma, but if either did that, STREQ would have 3 or more arguments. Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better. * lib/fts.c (STREQ): Remove unnecessary parentheses. * lib/hash-triple.c (STREQ): Likewise. * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2. * lib/getugroups.c (STREQ): Likewise.
author Jim Meyering <meyering@redhat.com>
date Sun, 24 Jan 2010 11:31:42 +0100
parents c2cbabec01dd
children 3af48780d248
line wrap: on
line diff
--- a/lib/fts.c	Sat Jan 23 22:08:55 2010 +0100
+++ b/lib/fts.c	Sun Jan 24 11:31:42 2010 +0100
@@ -223,7 +223,7 @@
 #endif
 
 #define ISDOT(a)        (a[0] == '.' && (!a[1] || (a[1] == '.' && !a[2])))
-#define STREQ(a, b)     (strcmp ((a), (b)) == 0)
+#define STREQ(a, b)     (strcmp (a, b) == 0)
 
 #define CLR(opt)        (sp->fts_options &= ~(opt))
 #define ISSET(opt)      (sp->fts_options & (opt))