fix file end newlines with pre-commit
authorWolf Vollprecht <w.vollprecht@gmail.com>
Sat, 8 Jan 2022 15:39:30 +0000 (16:39 +0100)
committerWolf Vollprecht <w.vollprecht@gmail.com>
Sat, 8 Jan 2022 15:39:30 +0000 (16:39 +0100)
15 files changed:
src/lib/hash/sha1/sha1.c
src/lib/hash/sha2/sha2.c
src/lib/hash/sha2/sha2.h
src/lib/win32/basename.c
src/lib/win32/dirent.h
src/lib/win32/ftruncate.c
src/lib/win32/regex.h
src/lib/win32/regexec.c
src/lib/win32/tre-mem.c
src/lib/win32/unistd.h
src/unzck.c
src/zck_gen_zdict.c
subprojects/zstd.wrap
test/lib/util.c
test/lib/util.h

index e34de619507371ef884971baf55670cf0e7eb908..b3d102cf604d13d674547da13bb26c855db5c7b1 100644 (file)
@@ -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);
 }
-
index 0fe4c375c932d12afa972fc8141bda02aac1bb74..e48bce8716afd85e49395a6a13bf274c470b5eab 100644 (file)
@@ -946,4 +946,3 @@ int main(void)
 }
 
 #endif /* TEST_VECTORS */
-
index 60f52e34d4b8429448a0adf82f5c36a045315b88..f42186140b274584b4fe4d4d0616b6d97bb707e0 100644 (file)
@@ -105,4 +105,3 @@ void sha512(const unsigned char *message, unsigned int len,
 #endif
 
 #endif /* !SHA2_H */
-
index 20ec1b7bb03a878877421c411025554473858bb7..87fd10fb1cab398dc97269a7e2fe49bb9fd63351 100644 (file)
@@ -10,4 +10,4 @@ char* basename(char* path)
         p = strrchr(path, '/');
     }
     return p ? p + 1 : (char *) path;
-}
\ No newline at end of file
+}
index a26f7a702682a30a0106beff204b6c47ca823ce6..a2e847a0fef5462dea43c50d4d66ab1de456aee6 100644 (file)
@@ -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*/
index 3227732ddba01e1ac12ad5642502db7f440db39a..c188da4dc0bd49d64d6dab0a8a981f2956b0f371 100644 (file)
@@ -18,4 +18,4 @@ int ftruncate(int fd, LONGLONG length)
         return -1;
     }
     return 0;
-}
\ No newline at end of file
+}
index 06a10906ba21ad79f4b8a578a94812871c270fa1..e4b9290a41377cee588fa6989571d6e8922a44a6 100644 (file)
@@ -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
index 61e40a58cd9ff6cf0dab265cb36197e6bfb43e31..6372e225046e29327422cb809f12a3a38a9eda65 100644 (file)
@@ -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
+}
index 327515b22db297676cbe5ffc974718ea04a14a94..9d47f4e3db4acafa62e200e31a50a43ba3aa35e7 100644 (file)
@@ -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
+}
index 41b121cd16b7daa8b6f81c30e7ca71e85958705c..d1bfec4d5aa6529fe553ba4a9551603164199528 100644 (file)
@@ -1,4 +1,4 @@
 #ifndef _UNISTD_H
 #define _UNISTD_H
 
-#endif
\ No newline at end of file
+#endif
index 43de48556a34e41467ce66452d526d757f81d4b7..23921398771cc13868db5d83b7353fb349962cd8 100644 (file)
@@ -251,4 +251,4 @@ error2:
     if(!good_exit)
         exit(1);
     exit(0);
-}
\ No newline at end of file
+}
index 76d284c87c959f224243dffed40b6fa5fb1a62b1..afa4dfef69cf11e91067c0aa43f55b45e73ac12a 100644 (file)
@@ -372,4 +372,4 @@ error2:
     if(!good_exit)
         exit(1);
     exit(0);
-}
\ No newline at end of file
+}
index b736b50913ce4b5e53d84490cf672806aa72e83c..68691f829ca21fd55b066d9ef40aee13e169f716 100644 (file)
@@ -9,4 +9,3 @@ patch_hash = fd9cb7b9c8f7092ef1597ff68f170beef65fcf33e575a621955cf405a41db1cc
 
 [provide]
 libzstd = libzstd_dep
-
index a1152e138485121c8fcd68ad892f253919e6e7bb..e09513c7d5ba53ad185e7cf75260f3bb00b512f2 100644 (file)
@@ -49,4 +49,3 @@ char *get_hash(char *data, size_t length, int type) {
     free(digest);
     return digest_string;
 }
-
index d3d9fe251390480c4bb972a18d950dc926411452..706f3bef4c42173cebe03a2a25fccbd35b170485 100644 (file)
@@ -43,4 +43,3 @@
 
 char *get_hash(char *data, size_t length, int type)
     ZCK_WARN_UNUSED;
-