aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/common
diff options
context:
space:
mode:
authorAntoine Cœur <antoine.coeur@ef.com>2019-05-08 13:30:57 +0800
committerLasse Collin <lasse.collin@tukaani.org>2019-05-11 20:52:37 +0300
commit2fb0ddaa557ce86e38fe06439930fa8665f092fd (patch)
treec868caf1d3886ebdbd7ce730a1217364daf6eb84 /src/liblzma/common
parentxz: In xz -lvv look at the widths of the check names too. (diff)
downloadxz-2fb0ddaa557ce86e38fe06439930fa8665f092fd.tar.xz
spelling
Diffstat (limited to '')
-rw-r--r--src/liblzma/common/file_info.c4
-rw-r--r--src/liblzma/common/hardware_physmem.c2
-rw-r--r--src/liblzma/common/index.c4
-rw-r--r--src/liblzma/common/stream_encoder_mt.c2
-rw-r--r--src/liblzma/common/vli_decoder.c2
5 files changed, 7 insertions, 7 deletions
diff --git a/src/liblzma/common/file_info.c b/src/liblzma/common/file_info.c
index deb644f9..a6b7e145 100644
--- a/src/liblzma/common/file_info.c
+++ b/src/liblzma/common/file_info.c
@@ -283,7 +283,7 @@ file_info_decode(void *coder_ptr, const lzma_allocator *allocator,
// This is the only Stream Header/Footer decoding where we
// want to return LZMA_FORMAT_ERROR if the Magic Bytes don't
- // match. Elsewehere it will be converted to LZMA_DATA_ERROR.
+ // match. Elsewhere it will be converted to LZMA_DATA_ERROR.
return_if_error(lzma_stream_header_decode(
&coder->first_header_flags, coder->temp));
@@ -828,7 +828,7 @@ lzma_file_info_decoder_init(lzma_next_coder *next,
// won't return 0 (which would indicate an error).
coder->memlimit = my_max(1, memlimit);
- // Preprare thse for reading the first Stream Header into coder->temp.
+ // Prepare these for reading the first Stream Header into coder->temp.
coder->temp_pos = 0;
coder->temp_size = LZMA_STREAM_HEADER_SIZE;
diff --git a/src/liblzma/common/hardware_physmem.c b/src/liblzma/common/hardware_physmem.c
index 7405b658..a2bbbe29 100644
--- a/src/liblzma/common/hardware_physmem.c
+++ b/src/liblzma/common/hardware_physmem.c
@@ -19,7 +19,7 @@ extern LZMA_API(uint64_t)
lzma_physmem(void)
{
// It is simpler to make lzma_physmem() a wrapper for
- // tuklib_physmem() than to hack appropriate symbol visiblity
+ // tuklib_physmem() than to hack appropriate symbol visibility
// support for the tuklib modules.
return tuklib_physmem();
}
diff --git a/src/liblzma/common/index.c b/src/liblzma/common/index.c
index 007e1570..a41e8f33 100644
--- a/src/liblzma/common/index.c
+++ b/src/liblzma/common/index.c
@@ -105,7 +105,7 @@ typedef struct {
typedef struct {
- /// Every index_stream is a node in the tree of Sreams.
+ /// Every index_stream is a node in the tree of Streams.
index_tree_node node;
/// Number of this Stream (first one is 1)
@@ -166,7 +166,7 @@ struct lzma_index_s {
lzma_vli index_list_size;
/// How many Records to allocate at once in lzma_index_append().
- /// This defaults to INDEX_GROUP_SIZE but can be overriden with
+ /// This defaults to INDEX_GROUP_SIZE but can be overridden with
/// lzma_index_prealloc().
size_t prealloc;
diff --git a/src/liblzma/common/stream_encoder_mt.c b/src/liblzma/common/stream_encoder_mt.c
index 2efe44c2..448d871c 100644
--- a/src/liblzma/common/stream_encoder_mt.c
+++ b/src/liblzma/common/stream_encoder_mt.c
@@ -958,7 +958,7 @@ stream_encoder_mt_init(lzma_next_coder *next, const lzma_allocator *allocator,
// Validate the filter chain so that we can give an error in this
// function instead of delaying it to the first call to lzma_code().
// The memory usage calculation verifies the filter chain as
- // a side effect so we take advatange of that.
+ // a side effect so we take advantage of that.
if (lzma_raw_encoder_memusage(filters) == UINT64_MAX)
return LZMA_OPTIONS_ERROR;
diff --git a/src/liblzma/common/vli_decoder.c b/src/liblzma/common/vli_decoder.c
index c181828b..af2799d1 100644
--- a/src/liblzma/common/vli_decoder.c
+++ b/src/liblzma/common/vli_decoder.c
@@ -72,7 +72,7 @@ lzma_vli_decode(lzma_vli *restrict vli, size_t *vli_pos,
// corrupt.
//
// If we need bigger integers in future, old versions liblzma
- // will confusingly indicate the file being corrupt istead of
+ // will confusingly indicate the file being corrupt instead of
// unsupported. I suppose it's still better this way, because
// in the foreseeable future (writing this in 2008) the only
// reason why files would appear having over 63-bit integers