summaryrefslogtreecommitdiff
path: root/lib/trim.h
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-02-01 19:05:26 +0100
committerJim Meyering <meyering@redhat.com>2010-02-02 08:00:53 +0100
commit0c9191b333f31bf193a4417597015864c7258d04 (patch)
tree5a0b74b6da90e372b88fe729a1b4d99eec28283d /lib/trim.h
parent34deb3471655d57d311749b68d194ceee0081898 (diff)
downloadgnulib-0c9191b333f31bf193a4417597015864c7258d04.tar.gz
removing useless parentheses in cpp #define directives
For motivation, see commit c0221df4, "define STREQ(a,b) consistently, removing useless parentheses" * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses. * lib/mountlist.c (MNT_IGNORE): Likewise. * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
Diffstat (limited to 'lib/trim.h')
-rw-r--r--lib/trim.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/trim.h b/lib/trim.h
index 61880c1f60..c70a16fba8 100644
--- a/lib/trim.h
+++ b/lib/trim.h
@@ -22,13 +22,12 @@
#define TRIM_BOTH 2
/* Removes trailing and leading whitespaces. */
-#define trim(s) trim2((s), TRIM_BOTH)
+#define trim(s) trim2(s, TRIM_BOTH)
/* Removes trailing whitespaces. */
-#define trim_trailing(s) trim2((s), TRIM_TRAILING)
+#define trim_trailing(s) trim2(s, TRIM_TRAILING)
/* Removes leading whitespaces. */
-#define trim_leading(s) trim2((s), TRIM_LEADING)
+#define trim_leading(s) trim2(s, TRIM_LEADING)
char *trim2(const char *, int);
-