aboutsummaryrefslogtreecommitdiff
path: root/src/lzma
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2008-04-28 17:06:34 +0300
committerLasse Collin <lasse.collin@tukaani.org>2008-04-28 17:06:34 +0300
commit3be21fb12f4cec2cf07799e8960382f4cb375369 (patch)
treea20ea08ae1eb3237a73cc68c2f0828a57f56e381 /src/lzma
parentPrevent LZ encoder from hanging with known uncompressed (diff)
downloadxz-3be21fb12f4cec2cf07799e8960382f4cb375369.tar.xz
Fixed wrong spelling "limitter" to "limiter". This affects
liblzma's API.
Diffstat (limited to '')
-rw-r--r--src/lzma/list.c6
-rw-r--r--src/lzmadec/lzmadec.c12
2 files changed, 9 insertions, 9 deletions
diff --git a/src/lzma/list.c b/src/lzma/list.c
index 61eb5702..e59f28b7 100644
--- a/src/lzma/list.c
+++ b/src/lzma/list.c
@@ -328,9 +328,9 @@ parse_stream_tail(listing_handle *handle)
static void
list_native(listing_handle *handle)
{
- lzma_memory_limitter *limitter
- = lzma_memory_limitter_create(opt_memory);
- if (limitter == NULL) {
+ lzma_memory_limiter *limiter
+ = lzma_memory_limiter_create(opt_memory);
+ if (limiter == NULL) {
errmsg(V_ERROR,
}
lzma_info *info =
diff --git a/src/lzmadec/lzmadec.c b/src/lzmadec/lzmadec.c
index eca58b98..f92deadd 100644
--- a/src/lzmadec/lzmadec.c
+++ b/src/lzmadec/lzmadec.c
@@ -482,15 +482,15 @@ main(int argc, char **argv)
lzma_init_decoder();
- lzma_memlimit *mem_limitter = lzma_memlimit_create(mem_limit);
- if (mem_limitter == NULL) {
+ lzma_memlimit *mem_limiter = lzma_memlimit_create(mem_limit);
+ if (mem_limiter == NULL) {
fprintf(stderr, "%s: %s\n", argv0, strerror(ENOMEM));
exit(ERROR);
}
- assert(lzma_memlimit_count(mem_limitter) == 0);
+ assert(lzma_memlimit_count(mem_limiter) == 0);
- allocator.opaque = mem_limitter;
+ allocator.opaque = mem_limiter;
strm.allocator = &allocator;
#ifdef WIN32
@@ -528,8 +528,8 @@ main(int argc, char **argv)
// Free the memory only when debugging. Freeing wastes some time,
// but allows detecting possible memory leaks with Valgrind.
lzma_end(&strm);
- assert(lzma_memlimit_count(mem_limitter) == 0);
- lzma_memlimit_end(mem_limitter, false);
+ assert(lzma_memlimit_count(mem_limiter) == 0);
+ lzma_memlimit_end(mem_limiter, false);
#endif
return exit_status;