[git commit master 1/1] *: more empty lines removed. no code changes
Denys Vlasenko
vda.linux at googlemail.com
Sun Jul 25 23:35:44 UTC 2010
commit: http://git.busybox.net/busybox/commit/?id=0f8960542f6f5ae258e72e56ba7296a01a9c10af
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
archival/lzo1x_9x.c | 1 -
e2fsprogs/old_e2fsprogs/ext2fs/rw_bitmaps.c | 1 -
networking/interface.c | 1 -
networking/ntpd.c | 1 -
scripts/find_stray_empty_lines | 7 +++++++
5 files changed, 7 insertions(+), 4 deletions(-)
create mode 100755 scripts/find_stray_empty_lines
diff --git a/archival/lzo1x_9x.c b/archival/lzo1x_9x.c
index 0baed54..4832051 100644
--- a/archival/lzo1x_9x.c
+++ b/archival/lzo1x_9x.c
@@ -675,7 +675,6 @@ static int min_gain(unsigned ahead, unsigned lit1,
static void better_match(const lzo_swd_p swd,
unsigned *m_len, unsigned *m_off)
{
-
if (*m_len <= M2_MIN_LEN)
return;
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/rw_bitmaps.c b/e2fsprogs/old_e2fsprogs/ext2fs/rw_bitmaps.c
index b618acc..bba4326 100644
--- a/e2fsprogs/old_e2fsprogs/ext2fs/rw_bitmaps.c
+++ b/e2fsprogs/old_e2fsprogs/ext2fs/rw_bitmaps.c
@@ -266,7 +266,6 @@ errcode_t ext2fs_read_block_bitmap(ext2_filsys fs)
errcode_t ext2fs_read_bitmaps(ext2_filsys fs)
{
-
EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
if (fs->inode_map && fs->block_map)
diff --git a/networking/interface.c b/networking/interface.c
index 659ac36..7c6ed82 100644
--- a/networking/interface.c
+++ b/networking/interface.c
@@ -927,7 +927,6 @@ static void print_bytes_scaled(unsigned long long ull, const char *end)
static void ife_print6(struct interface *ptr)
{
-
FILE *f;
char addr6[40], devname[20];
struct sockaddr_in6 sap;
diff --git a/networking/ntpd.c b/networking/ntpd.c
index d00ee49..e9cfdbd 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -2060,7 +2060,6 @@ int ntpd_main(int argc UNUSED_PARAM, char **argv)
static double
direct_freq(double fp_offset)
{
-
#ifdef KERNEL_PLL
/*
* If the kernel is enabled, we need the residual offset to
diff --git a/scripts/find_stray_empty_lines b/scripts/find_stray_empty_lines
new file mode 100755
index 0000000..58daf2f
--- /dev/null
+++ b/scripts/find_stray_empty_lines
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+grep -n -B1 -r $'^\t*}$' . | grep -A1 '.[ch]-[0-9]*-$'
+grep -n -A1 -r $'^\t*{$' . | grep -B1 '.[ch]-[0-9]*-$'
+# or (less surefire ones):
+grep -n -B1 -r $'^\t*}' . | grep -A1 '.[ch]-[0-9]*-$'
+grep -n -A1 -r $'^\t*{' . | grep -B1 '.[ch]-[0-9]*-$'
--
1.7.1
More information about the busybox-cvs
mailing list