From 1b8cafe7df7a63472bc8af0a5ef026b85edb7a9a Mon Sep 17 00:00:00 2001 From: Kuan-Wei Chiu Date: Wed, 6 Mar 2024 22:53:57 +0800 Subject: [PATCH] Enforce newline at the end of files Ensure that all the files conform to the standard of having a newline character at the end. Link: https://medium.com/@alexey.inkin/how-to-force-newline-at-end-of-files-and-why-you-should-do-it-fdf76d1d090e --- console.c | 2 +- linenoise.c | 2 +- linenoise.h | 2 +- web.c | 2 +- web.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/console.c b/console.c index 009ce5c8d..3745c9666 100644 --- a/console.c +++ b/console.c @@ -674,4 +674,4 @@ bool run_console(char *infile_name) } return err_cnt == 0; -} \ No newline at end of file +} diff --git a/linenoise.c b/linenoise.c index eee1cc55c..69048e9e6 100644 --- a/linenoise.c +++ b/linenoise.c @@ -1383,4 +1383,4 @@ int line_history_load(const char *filename) } fclose(fp); return 0; -} \ No newline at end of file +} diff --git a/linenoise.h b/linenoise.h index 86b73d7e6..0e61e125a 100644 --- a/linenoise.h +++ b/linenoise.h @@ -76,4 +76,4 @@ void line_mask_mode_disable(void); } #endif -#endif /* __LINENOISE_H */ \ No newline at end of file +#endif /* __LINENOISE_H */ diff --git a/web.c b/web.c index 5c573040d..30b336276 100644 --- a/web.c +++ b/web.c @@ -267,4 +267,4 @@ int web_eventmux(char *buf) FD_CLR(STDIN_FILENO, &listenset); return 0; -} \ No newline at end of file +} diff --git a/web.h b/web.h index 3f5982a04..6b6b8ab04 100644 --- a/web.h +++ b/web.h @@ -11,4 +11,4 @@ void web_send(int out_fd, char *buffer); int web_eventmux(char *buf); -#endif \ No newline at end of file +#endif