]> 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>
Thu, 23 May 2024 08:36:05 +0000 (11:36 +0300)
Thanks to xx on #tukaani.

(cherry picked from commit 4e9023857d287f624562156b60dc23d2b64c0f10)

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

index 589901c7d3e1a899f6c01250b924d835cb439e0c..10ea2d42c24d56ffa11849ff13aeab2b777d41d6 100644 (file)
@@ -200,7 +200,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 93483b5ca4320023ab35607bc58494a855aad813..fbd5fb2369a2db60915fce517ea1f8516a7231ff 100644 (file)
@@ -627,7 +627,7 @@ write64le(uint8_t *buf, uint64_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 20d485b97becb945cb5dafd239d5a1f96da36a84..590e1d22bb0f2ae2473dcc905c5cc23437d23e20 100644 (file)
@@ -257,7 +257,7 @@ typedef enum {
                 */
 
        /*
-        * These eumerations may be used internally by liblzma
+        * These enumerations may be used internally by liblzma
         * but they will never be returned to applications.
         */
        LZMA_RET_INTERNAL1      = 101,
index e80c582c916f4521b193e7b18460572ed3b16c0f..cc0d88cc71c1831329d39687249c8370e4ffc652 100644 (file)
@@ -23,7 +23,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 2da6bd9c77814e174d737ff41db55835006e397b..d15d9cc94f9962f49a3cfd3d40dd362e767f9ed8 100644 (file)
@@ -153,7 +153,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 dad51ca4c38cc1101d7274f6d29802ba5e6d8105..c9cd02d07c4129dc130275cf8b4edfcb89fa9ab3 100644 (file)
@@ -277,7 +277,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