diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-04-13 13:18:06 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-04-13 13:18:06 -0600 |
commit | 3900ca5789a408413a6e590683b4babe76ac7fad (patch) | |
tree | 228f5246dcea113238b5925775b9b9ccf8585238 /nuttx/tools | |
parent | 74a4eb6d1612d63958e14a240cc526c9be8041e0 (diff) | |
download | px4-nuttx-3900ca5789a408413a6e590683b4babe76ac7fad.tar.gz px4-nuttx-3900ca5789a408413a6e590683b4babe76ac7fad.tar.bz2 px4-nuttx-3900ca5789a408413a6e590683b4babe76ac7fad.zip |
Cosmetic changes for coding style; removal of dangling spaces at the end of lines
Diffstat (limited to 'nuttx/tools')
-rwxr-xr-x | nuttx/tools/mkfsdata.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/tools/mkfsdata.pl b/nuttx/tools/mkfsdata.pl index 589ad5f08..073e69775 100755 --- a/nuttx/tools/mkfsdata.pl +++ b/nuttx/tools/mkfsdata.pl @@ -44,8 +44,8 @@ closedir(DIR); print(OUTPUT "#include <apps/netutils/httpd.h>\n\n"); print(OUTPUT "#ifndef NULL\n#define NULL 0\n#endif\n\n"); -foreach $file (@files) { - +foreach $file (@files) { + if(-d $file && $file !~ /^\./) { print "Processing directory $file\n"; opendir(DIR, $file); @@ -75,8 +75,8 @@ foreach $file (@files) { printf(OUTPUT "%#02x, ", unpack("C", substr($file, $j, 1))); } printf(OUTPUT "0x00,\n "); - - $i = 0; + + $i = 0; while(read(FILE, $data, 1)) { printf(OUTPUT "%#02x, ", unpack("C", $data)); $i++; |