remove superfluous parentheses in STREQ definition
authorJim Meyering <meyering@redhat.com>
Sun, 5 Jul 2009 15:45:56 +0000 (17:45 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 5 Jul 2009 15:45:56 +0000 (17:45 +0200)
* tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
* lib/getugroups.c (STREQ): Likewise.
* lib/fnmatch.c (STREQ): Likewise.
Spotted by Bruno Haible.

ChangeLog
lib/fnmatch.c
lib/getugroups.c
tests/test-argv-iter.c

index 1dc20c03d6cdd8e8aa81a8842e707b43dda42465..1ada00b6369d9887e86411e0766750db6d4a9ef0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-07-05  Jim Meyering  <meyering@redhat.com>
+
+       remove superfluous parentheses in STREQ definition
+       * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
+       * lib/getugroups.c (STREQ): Likewise.
+       * lib/fnmatch.c (STREQ): Likewise.
+       Spotted by Bruno Haible.
+
 2009-07-04  Jim Meyering  <meyering@redhat.com>
 
        argv-iter: new module
index 48bc8b5d2a0b9e6c1bcd730cbdf6997605d93e15..a0356aca21c9279eb3e457748b4339c048a24d60 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,1992,1993,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007
+/* Copyright (C) 1991,1992,1993,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2009
        Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
@@ -89,7 +89,7 @@ extern int fnmatch (const char *pattern, const char *string, int flags);
 #  define isblank(c) ((c) == ' ' || (c) == '\t')
 # endif
 
-# define STREQ(s1, s2) ((strcmp (s1, s2) == 0))
+# define STREQ(s1, s2) (strcmp (s1, s2) == 0)
 
 # if defined _LIBC || WIDE_CHAR_SUPPORT
 /* The GNU C library provides support for user-defined character classes
index b266bb8c320108144069dcc1066c007224da52bf..2207b85a176f1fdd24fc852203e09a2f875b53d5 100644 (file)
@@ -1,6 +1,6 @@
 /* getugroups.c -- return a list of the groups a user is in
 
-   Copyright (C) 1990, 1991, 1998-2000, 2003-2008 Free Software Foundation.
+   Copyright (C) 1990, 1991, 1998-2000, 2003-2009 Free Software Foundation.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -36,7 +36,7 @@ struct group *getgrent (void);
 
 #include <string.h>
 
-#define STREQ(s1, s2) ((strcmp (s1, s2) == 0))
+#define STREQ(s1, s2) (strcmp (s1, s2) == 0)
 
 /* Like `getgroups', but for user USERNAME instead of for the current
    process.  Store at most MAXCOUNT group IDs in the GROUPLIST array.
index 7682c4a02af20704c82d4fea804a80366fac13a5..507075409966bb39404cf99f298aed8417bc2510 100644 (file)
@@ -22,7 +22,7 @@
 #include <string.h>
 
 #define ARRAY_CARDINALITY(Array) (sizeof (Array) / sizeof *(Array))
-#define STREQ(s1, s2) ((strcmp (s1, s2) == 0))
+#define STREQ(s1, s2) (strcmp (s1, s2) == 0)
 #define ASSERT(expr) \
   do                                                                         \
     {                                                                        \