/usr/src/freeswitch/src# grep -rc "\s\+$" * | grep -v ":0$"

1200+ files with trailing whitespace does seem a bit excessive, however I don't know how large a "problem" it really is. If you're going to do whitespace cleanup I recommend starting small, like with mod_rtmp.c. Run your whitespace cleanup script on just a few files, recompile them, verify that it's all good, then commit & push. I don't know about the other devs, but I would feel much more comfortable with small, controlled updates than a large sweep that does a lot of files.

Just my $0.02...

-MC

On Sat, Apr 7, 2012 at 8:49 AM, Seven Du <dujinfang@gmail.com> wrote:
cat -t mod_rtmp.c | grep I
cat mod_rtmp.c | grep " $"

some editors insert tabs automatically when you press enter.

On Saturday, April 7, 2012 at 12:26 PM, Michael Collins wrote:

can you show us an example of code w/ trailing whitespaces?
-MC