summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-05-22 16:07:18 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commit683bf69990339755aac44d636d12d6408c53b07e (patch)
tree4a427c562349f693953a9a241835009cd8d274d9 /tools
parent291e81fa4a1553bea00b37af46fb1dea13819c76 (diff)
find-double-newline: look in headers too
Diffstat (limited to 'tools')
-rw-r--r--tools/find-double-newline.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/find-double-newline.sh b/tools/find-double-newline.sh
index c41811483..6e7e4cb69 100644
--- a/tools/find-double-newline.sh
+++ b/tools/find-double-newline.sh
@@ -10,7 +10,7 @@ case "$1" in
DIR="$2"
fi
- find $DIR -type f \( -name '*.c' -o -name '*.xml' \) -exec $0 diff \{\} \;
+ find $DIR -type f \( -name '*.[ch]' -o -name '*.xml' \) -exec $0 diff \{\} \;
;;
recpatch)
@@ -20,7 +20,7 @@ case "$1" in
DIR="$2"
fi
- find $DIR -type f \( -name '*.c' -o -name '*.xml' \) -exec $0 patch \{\} \;
+ find $DIR -type f \( -name '*.[ch]' -o -name '*.xml' \) -exec $0 patch \{\} \;
;;
diff)