From: Nathan Moinvaziri Date: Sat, 4 Sep 2021 19:16:16 +0000 (-0700) Subject: Fixed trailing whitespaces and missing new lines. X-Git-Tag: 2.0.6~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f22eb69fbf049144ecef53ede33a8bff18ca5eb;p=thirdparty%2Fzlib-ng.git Fixed trailing whitespaces and missing new lines. --- diff --git a/cmake/detect-arch.c b/cmake/detect-arch.c index 8cae4eb6..84e6a841 100644 --- a/cmake/detect-arch.c +++ b/cmake/detect-arch.c @@ -36,7 +36,7 @@ #if defined(__64BIT__) || defined(__powerpc64__) || defined(__ppc64__) #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ #error archfound powerpc64le - #else + #else #error archfound powerpc64 #endif #else @@ -94,7 +94,7 @@ #error archfound rs6000 // RISC-V -#elif defined(__riscv) +#elif defined(__riscv) #if __riscv_xlen == 64 #error archfound riscv64 #elif __riscv_xlen == 32 diff --git a/cmake/run-and-compare.cmake b/cmake/run-and-compare.cmake index af54abc2..209d31e9 100644 --- a/cmake/run-and-compare.cmake +++ b/cmake/run-and-compare.cmake @@ -59,4 +59,4 @@ endif() if(CMD_RESULT) message(FATAL_ERROR "Run compare failed: ${CMD_RESULT}") -endif() \ No newline at end of file +endif() diff --git a/cmake/test-compress.cmake b/cmake/test-compress.cmake index 321fa543..cfc7613a 100644 --- a/cmake/test-compress.cmake +++ b/cmake/test-compress.cmake @@ -261,4 +261,4 @@ if(GZIP_VERIFY AND NOT "${COMPRESS_ARGS}" MATCHES "-T") endif() endif() -cleanup_always() \ No newline at end of file +cleanup_always() diff --git a/cmake/test-tools.cmake b/cmake/test-tools.cmake index 32759355..4afe07c2 100644 --- a/cmake/test-tools.cmake +++ b/cmake/test-tools.cmake @@ -32,4 +32,3 @@ add_test(NAME switchlevels-help COMMAND ${CMAKE_COMMAND} "-DCOMMAND=${TEST_COMMAND}" -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/run-and-redirect.cmake) - diff --git a/deflate_fast.c b/deflate_fast.c index 1594886f..1e112354 100644 --- a/deflate_fast.c +++ b/deflate_fast.c @@ -47,7 +47,6 @@ Z_INTERNAL block_state deflate_fast(deflate_state *s, int flush) { /* Find the longest match, discarding those <= prev_length. * At this point we have always match length < MIN_MATCH */ - if (dist <= MAX_DIST(s) && dist > 0 && hash_head != 0) { /* To simplify the code, we prevent matches with the string * of window index 0 (in particular we have to avoid a match diff --git a/inffast.c b/inffast.c index 136b98d5..de71271b 100644 --- a/inffast.c +++ b/inffast.c @@ -152,8 +152,8 @@ void Z_INTERNAL zng_inflate_fast(PREFIX3(stream) *strm, unsigned long start) { lmask = (1U << state->lenbits) - 1; dmask = (1U << state->distbits) - 1; - /* Detect if out and window point to the same memory allocation. In this instance it is - necessary to use safe chunk copy functions to prevent overwriting the window. If the + /* Detect if out and window point to the same memory allocation. In this instance it is + necessary to use safe chunk copy functions to prevent overwriting the window. If the window is overwritten then future matches with far distances will fail to copy correctly. */ extra_safe = (out >= window && out + INFLATE_FAST_MIN_LEFT <= window + wsize);