summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-11-29 17:18:48 +0100
committerJim Meyering <meyering@redhat.com>2009-11-30 16:55:04 +0100
commitd44cfc189dc3ae86d6eee28a53f243c8cd7d156c (patch)
treec1534176d9de189c158efd9ccb5995502ca5fff5
parentce99e9bfe11aaff027cb210bc232a3b36eddbf33 (diff)
downloadgrep-d44cfc189dc3ae86d6eee28a53f243c8cd7d156c.tar.gz
maint: enable two checks
* cfg.mk (local-checks-to-skip): Enable two: sc_prohibit_xalloc_without_use sc_two_space_separator_in_usage * src/grep.c (usage): Conform: use two spaces, not 1. * src/kwset.c (malloc): Define as a function-macro so that the syntax-check rule sees that we are indeed using xmalloc here.
-rw-r--r--cfg.mk2
-rw-r--r--src/grep.c4
-rw-r--r--src/kwset.c2
3 files changed, 3 insertions, 5 deletions
diff --git a/cfg.mk b/cfg.mk
index ef116cc9..aa22cb61 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -33,9 +33,7 @@ local-checks-to-skip = \
sc_prohibit_have_config_h \
sc_prohibit_magic_number_exit \
sc_prohibit_strcmp \
- sc_prohibit_xalloc_without_use \
sc_space_tab \
- sc_two_space_separator_in_usage \
sc_useless_cpp_parens
# Tools used to bootstrap this package, used for "announcement".
diff --git a/src/grep.c b/src/grep.c
index c6590652..fbeb0899 100644
--- a/src/grep.c
+++ b/src/grep.c
@@ -1472,8 +1472,8 @@ Output control:\n\
--include=FILE_PATTERN search only files that match FILE_PATTERN\n\
--exclude=FILE_PATTERN skip files and directories matching FILE_PATTERN\n\
--exclude-from=FILE skip files matching any file pattern from FILE\n\
- --exclude-dir=PATTERN directories that match PATTERN will be skipped.\n\
- -L, --files-without-match print only names of FILEs containing no match\n\
+ --exclude-dir=PATTERN directories that match PATTERN will be skipped.\n\
+ -L, --files-without-match print only names of FILEs containing no match\n\
-l, --files-with-matches print only names of FILEs containing matches\n\
-c, --count print only a count of matching lines per FILE\n\
-T, --initial-tab make tabs line up (if needed)\n\
diff --git a/src/kwset.c b/src/kwset.c
index 0957f660..2d90ca59 100644
--- a/src/kwset.c
+++ b/src/kwset.c
@@ -40,7 +40,7 @@
#ifdef GREP
# include "xalloc.h"
# undef malloc
-# define malloc xmalloc
+# define malloc(s) xmalloc(s)
#endif
#define NCHAR (UCHAR_MAX + 1)