From 7a7312a333fdaace1e4020be47ca30b8dbb59152 Mon Sep 17 00:00:00 2001 From: Wolf Vollprecht Date: Sat, 8 Jan 2022 16:39:30 +0100 Subject: [PATCH] fix file end newlines with pre-commit --- src/lib/hash/sha1/sha1.c | 1 - src/lib/hash/sha2/sha2.c | 1 - src/lib/hash/sha2/sha2.h | 1 - src/lib/win32/basename.c | 2 +- src/lib/win32/dirent.h | 2 +- src/lib/win32/ftruncate.c | 2 +- src/lib/win32/regex.h | 2 +- src/lib/win32/regexec.c | 2 +- src/lib/win32/tre-mem.c | 2 +- src/lib/win32/unistd.h | 2 +- src/unzck.c | 2 +- src/zck_gen_zdict.c | 2 +- subprojects/zstd.wrap | 1 - test/lib/util.c | 1 - test/lib/util.h | 1 - 15 files changed, 9 insertions(+), 15 deletions(-) diff --git a/src/lib/hash/sha1/sha1.c b/src/lib/hash/sha1/sha1.c index e34de61..b3d102c 100644 --- a/src/lib/hash/sha1/sha1.c +++ b/src/lib/hash/sha1/sha1.c @@ -154,4 +154,3 @@ void SHA1_Final(sha1_byte digest[SHA1_DIGEST_LENGTH], SHA_CTX *context) { memset(context->count, 0, 8); memset(&finalcount, 0, 8); } - diff --git a/src/lib/hash/sha2/sha2.c b/src/lib/hash/sha2/sha2.c index 0fe4c37..e48bce8 100644 --- a/src/lib/hash/sha2/sha2.c +++ b/src/lib/hash/sha2/sha2.c @@ -946,4 +946,3 @@ int main(void) } #endif /* TEST_VECTORS */ - diff --git a/src/lib/hash/sha2/sha2.h b/src/lib/hash/sha2/sha2.h index 60f52e3..f421861 100644 --- a/src/lib/hash/sha2/sha2.h +++ b/src/lib/hash/sha2/sha2.h @@ -105,4 +105,3 @@ void sha512(const unsigned char *message, unsigned int len, #endif #endif /* !SHA2_H */ - diff --git a/src/lib/win32/basename.c b/src/lib/win32/basename.c index 20ec1b7..87fd10f 100644 --- a/src/lib/win32/basename.c +++ b/src/lib/win32/basename.c @@ -10,4 +10,4 @@ char* basename(char* path) p = strrchr(path, '/'); } return p ? p + 1 : (char *) path; -} \ No newline at end of file +} diff --git a/src/lib/win32/dirent.h b/src/lib/win32/dirent.h index a26f7a7..a2e847a 100644 --- a/src/lib/win32/dirent.h +++ b/src/lib/win32/dirent.h @@ -1024,4 +1024,4 @@ static void dirent_set_errno(int error) #ifdef __cplusplus } #endif -#endif /*DIRENT_H*/ \ No newline at end of file +#endif /*DIRENT_H*/ diff --git a/src/lib/win32/ftruncate.c b/src/lib/win32/ftruncate.c index 3227732..c188da4 100644 --- a/src/lib/win32/ftruncate.c +++ b/src/lib/win32/ftruncate.c @@ -18,4 +18,4 @@ int ftruncate(int fd, LONGLONG length) return -1; } return 0; -} \ No newline at end of file +} diff --git a/src/lib/win32/regex.h b/src/lib/win32/regex.h index 06a1090..e4b9290 100644 --- a/src/lib/win32/regex.h +++ b/src/lib/win32/regex.h @@ -63,4 +63,4 @@ size_t regerror(int, const regex_t *__restrict, char *__restrict, size_t); } #endif -#endif \ No newline at end of file +#endif diff --git a/src/lib/win32/regexec.c b/src/lib/win32/regexec.c index 61e40a5..6372e22 100644 --- a/src/lib/win32/regexec.c +++ b/src/lib/win32/regexec.c @@ -1025,4 +1025,4 @@ regexec(const regex_t *__restrict preg, const char *__restrict string, if (tags) xfree(tags); return status; -} \ No newline at end of file +} diff --git a/src/lib/win32/tre-mem.c b/src/lib/win32/tre-mem.c index 327515b..9d47f4e 100644 --- a/src/lib/win32/tre-mem.c +++ b/src/lib/win32/tre-mem.c @@ -155,4 +155,4 @@ tre_mem_alloc_impl(tre_mem_t mem, int provided, void *provided_block, memset(ptr, 0, size); return ptr; -} \ No newline at end of file +} diff --git a/src/lib/win32/unistd.h b/src/lib/win32/unistd.h index 41b121c..d1bfec4 100644 --- a/src/lib/win32/unistd.h +++ b/src/lib/win32/unistd.h @@ -1,4 +1,4 @@ #ifndef _UNISTD_H #define _UNISTD_H -#endif \ No newline at end of file +#endif diff --git a/src/unzck.c b/src/unzck.c index 43de485..2392139 100644 --- a/src/unzck.c +++ b/src/unzck.c @@ -251,4 +251,4 @@ error2: if(!good_exit) exit(1); exit(0); -} \ No newline at end of file +} diff --git a/src/zck_gen_zdict.c b/src/zck_gen_zdict.c index 76d284c..afa4dfe 100644 --- a/src/zck_gen_zdict.c +++ b/src/zck_gen_zdict.c @@ -372,4 +372,4 @@ error2: if(!good_exit) exit(1); exit(0); -} \ No newline at end of file +} diff --git a/subprojects/zstd.wrap b/subprojects/zstd.wrap index b736b50..68691f8 100644 --- a/subprojects/zstd.wrap +++ b/subprojects/zstd.wrap @@ -9,4 +9,3 @@ patch_hash = fd9cb7b9c8f7092ef1597ff68f170beef65fcf33e575a621955cf405a41db1cc [provide] libzstd = libzstd_dep - diff --git a/test/lib/util.c b/test/lib/util.c index a1152e1..e09513c 100644 --- a/test/lib/util.c +++ b/test/lib/util.c @@ -49,4 +49,3 @@ char *get_hash(char *data, size_t length, int type) { free(digest); return digest_string; } - diff --git a/test/lib/util.h b/test/lib/util.h index d3d9fe2..706f3be 100644 --- a/test/lib/util.h +++ b/test/lib/util.h @@ -43,4 +43,3 @@ char *get_hash(char *data, size_t length, int type) ZCK_WARN_UNUSED; - -- 2.30.2