mirror of https://git.tukaani.org/xz.git
Fix typos
Thanks to xx on #tukaani.
(cherry picked from commit 4e9023857d
)
This commit is contained in:
parent
4686f0eecd
commit
7e85728f9a
|
@ -180,7 +180,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)
|
||||
{
|
||||
|
|
|
@ -625,7 +625,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
|
||||
|
|
|
@ -258,7 +258,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,
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
|
@ -145,7 +145,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;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue