]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Fix typos
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 17 May 2024 21:34:07 +0000 (00:34 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 21 May 2024 21:34:26 +0000 (00:34 +0300)
Thanks to xx on #tukaani.

(cherry picked from commit 4e9023857d287f624562156b60dc23d2b64c0f10)

src/common/mythread.h
src/common/tuklib_integer.h
src/liblzma/common/filter_buffer_decoder.c
src/liblzma/common/filter_common.c
src/scripts/xzgrep.in

index da858a330ffd589858485ac0344c089183ed8341..851785ad34662ed04d70d8008292beb8fd490adc 100644 (file)
@@ -174,7 +174,7 @@ mythread_join(mythread thread)
 }
 
 
-// Initiatlizes a mutex. Returns zero on success and non-zero on error.
+// Initializes a mutex. Returns zero on success and non-zero on error.
 static inline int
 mythread_mutex_init(mythread_mutex *mutex)
 {
index 08290842fbb6450c691bb8c5a5d97766c9589804..31ab543d0bb4c4aa398fb23004e3e6147be9d66d 100644 (file)
@@ -427,7 +427,7 @@ write32le(uint8_t *buf, uint32_t num)
 // aligned but some compilers have language extensions to do that. With
 // such language extensions the memcpy() method gives excellent results.
 //
-// What to do on a strict-align system when no known language extentensions
+// What to do on a strict-align system when no known language extensions
 // are available? Falling back to byte-by-byte access would be safe but ruin
 // optimizations that have been made specifically with aligned access in mind.
 // As a compromise, aligned reads will fall back to non-compliant type punning
index 6620986eea8a99f798f3b17dbee691cc069891b0..b7b140e74ee5a93e0ed7128dfce96f889840cb47 100644 (file)
@@ -24,7 +24,7 @@ lzma_raw_buffer_decode(
                        || out_pos == NULL || *out_pos > out_size)
                return LZMA_PROG_ERROR;
 
-       // Initialize the decoer.
+       // Initialize the decoder.
        lzma_next_coder next = LZMA_NEXT_CODER_INIT;
        return_if_error(lzma_raw_decoder_init(&next, allocator, filters));
 
index 590be7303febdccab0d23a30bfa21b2cc57afe91..610732547bd4b4de03c7f915d29d4f2af465f998 100644 (file)
@@ -129,7 +129,7 @@ lzma_filters_copy(const lzma_filter *src, lzma_filter *real_dest,
                return LZMA_PROG_ERROR;
 
        // Use a temporary destination so that the real destination
-       // will never be modied if an error occurs.
+       // will never be modified if an error occurs.
        lzma_filter dest[LZMA_FILTERS_MAX + 1];
 
        lzma_ret ret;
index 490e47d7b50335851575070b36a7ad59f45fa328..1e60d16cb4cf6750cd5079260bba1576828327e3 100644 (file)
@@ -275,7 +275,7 @@ for i; do
     test "$(kill -l "$xz_status" 2> /dev/null)" != "PIPE" && exit "$xz_status"
   elif test "$xz_status" -gt 0; then
     # Decompression failed but we will continue with the remaining
-    # files anwyway. Set exit status to at least 2 to indicate an error.
+    # files anyway. Set exit status to at least 2 to indicate an error.
     test "$r" -lt 2 && r=2
   fi