From 779197c63e08a050c0ae17ab86933981d563a85d Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Fri, 7 Feb 2020 21:31:07 +0800 Subject: [PATCH] Ensure all source code end with one and only one newline by this command: git ls-files -z | while IFS= read -rd '' f; do tail -c1 < "$f" | read -r _ || echo >> "$f"; done --- examples/elf/tests/helloxx/.gitignore | 2 +- examples/webserver/httpd-fs/404.html | 2 +- examples/webserver/httpd-fs/tcp.shtml | 2 +- examples/wgetjson/webserver/wgetjson/json_cmd.php | 2 +- examples/wgetjson/webserver/wgetjson/post_cmd.php | 2 +- graphics/ft80x/ft80x_ramdl.c | 2 +- graphics/slcd/slcd_mapping.cxx | 2 +- include/interpreters/minibasic.h | 2 +- include/testing/.gitignore | 2 +- platform/dummy/dummy.c | 1 + testing/.gitignore | 2 +- wireless/ieee802154/i8sak/i8sak_tx.c | 2 +- 12 files changed, 12 insertions(+), 11 deletions(-) diff --git a/examples/elf/tests/helloxx/.gitignore b/examples/elf/tests/helloxx/.gitignore index 049b72312..0e5ab0c12 100644 --- a/examples/elf/tests/helloxx/.gitignore +++ b/examples/elf/tests/helloxx/.gitignore @@ -2,4 +2,4 @@ hello++1 hello++2 hello++3 hello++4 -hello++5 \ No newline at end of file +hello++5 diff --git a/examples/webserver/httpd-fs/404.html b/examples/webserver/httpd-fs/404.html index a17711d02..60eab8fc0 100644 --- a/examples/webserver/httpd-fs/404.html +++ b/examples/webserver/httpd-fs/404.html @@ -5,4 +5,4 @@

Go here instead.

- \ No newline at end of file + diff --git a/examples/webserver/httpd-fs/tcp.shtml b/examples/webserver/httpd-fs/tcp.shtml index 4c4bffe97..f793f2796 100644 --- a/examples/webserver/httpd-fs/tcp.shtml +++ b/examples/webserver/httpd-fs/tcp.shtml @@ -2,4 +2,4 @@

Current connections


%! tcp-connections -%!: /footer.html \ No newline at end of file +%!: /footer.html diff --git a/examples/wgetjson/webserver/wgetjson/json_cmd.php b/examples/wgetjson/webserver/wgetjson/json_cmd.php index 458c910a4..31420abab 100644 --- a/examples/wgetjson/webserver/wgetjson/json_cmd.php +++ b/examples/wgetjson/webserver/wgetjson/json_cmd.php @@ -10,4 +10,4 @@ $ja["format"]["interlace"] = false; $ja["format"]["frame rate"] = 24; echo json_encode($ja); -?> \ No newline at end of file +?> diff --git a/examples/wgetjson/webserver/wgetjson/post_cmd.php b/examples/wgetjson/webserver/wgetjson/post_cmd.php index a35230075..c94088309 100644 --- a/examples/wgetjson/webserver/wgetjson/post_cmd.php +++ b/examples/wgetjson/webserver/wgetjson/post_cmd.php @@ -1,3 +1,3 @@ \ No newline at end of file +?> diff --git a/graphics/ft80x/ft80x_ramdl.c b/graphics/ft80x/ft80x_ramdl.c index 47b9cf16a..0fee72e16 100644 --- a/graphics/ft80x/ft80x_ramdl.c +++ b/graphics/ft80x/ft80x_ramdl.c @@ -128,4 +128,4 @@ int ft80x_ramdl_append(int fd, FAR const void *data, size_t len) DEBUGASSERT(nwritten == len); return OK; -} \ No newline at end of file +} diff --git a/graphics/slcd/slcd_mapping.cxx b/graphics/slcd/slcd_mapping.cxx index 832a7bb9a..5d580c4fb 100644 --- a/graphics/slcd/slcd_mapping.cxx +++ b/graphics/slcd/slcd_mapping.cxx @@ -193,4 +193,4 @@ namespace SLcd .segments = SEGMENT_5 } }; -} \ No newline at end of file +} diff --git a/include/interpreters/minibasic.h b/include/interpreters/minibasic.h index 6dc89250c..083911c14 100644 --- a/include/interpreters/minibasic.h +++ b/include/interpreters/minibasic.h @@ -69,4 +69,4 @@ int basic(FAR const char *script, FILE *in, FILE *out, FILE *err); -#endif \ No newline at end of file +#endif diff --git a/include/testing/.gitignore b/include/testing/.gitignore index 0772ba6b8..1ec9a2645 100644 --- a/include/testing/.gitignore +++ b/include/testing/.gitignore @@ -1,2 +1,2 @@ /unity.h -/unity_internals.h \ No newline at end of file +/unity_internals.h diff --git a/platform/dummy/dummy.c b/platform/dummy/dummy.c index e69de29bb..8b1378917 100644 --- a/platform/dummy/dummy.c +++ b/platform/dummy/dummy.c @@ -0,0 +1 @@ + diff --git a/testing/.gitignore b/testing/.gitignore index d1f10672a..9e1d2593e 100644 --- a/testing/.gitignore +++ b/testing/.gitignore @@ -1 +1 @@ -/Kconfig \ No newline at end of file +/Kconfig diff --git a/wireless/ieee802154/i8sak/i8sak_tx.c b/wireless/ieee802154/i8sak/i8sak_tx.c index 84082fb16..9c66f267b 100644 --- a/wireless/ieee802154/i8sak/i8sak_tx.c +++ b/wireless/ieee802154/i8sak/i8sak_tx.c @@ -300,4 +300,4 @@ static void tx_eventcb(FAR struct ieee802154_primitive_s *primitive, FAR void *a sem_post(&i8sak->sigsem); i8sak_requestdaemon(i8sak); -} \ No newline at end of file +}
LocalRemoteStateRetransmissionsTimerFlags