]> wimlib.net Git - wimlib/commitdiff
Fix some typos
authorEric Biggers <ebiggers3@gmail.com>
Sun, 25 Aug 2019 00:38:43 +0000 (17:38 -0700)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 25 Aug 2019 00:38:43 +0000 (17:38 -0700)
configure.ac
doc/man1/wimupdate.1
include/wimlib.h
src/blob_table.c
src/compress_common.c
src/lzx_compress.c
src/win32_apply.c
tests/test-imagex-mount

index 642c19b27a1a4996710d56a957641bf7af9654c8..659a1e90fcc5d823fc47081384807dfd777bfcad 100644 (file)
@@ -225,7 +225,7 @@ AM_CONDITIONAL([ENABLE_SSSE3_SHA1], [test "$ENABLE_SSSE3_SHA1" = "yes"])
 
 AC_MSG_CHECKING([whether to include error messages])
 AC_ARG_ENABLE([error_messages],
 
 AC_MSG_CHECKING([whether to include error messages])
 AC_ARG_ENABLE([error_messages],
-       AS_HELP_STRING([--disable-error-messages], [do not compile in error messsages]),
+       AS_HELP_STRING([--disable-error-messages], [do not compile in error messages]),
        [ENABLE_ERROR_MESSAGES=$enableval],
        [ENABLE_ERROR_MESSAGES=yes])
 AC_MSG_RESULT([$ENABLE_ERROR_MESSAGES])
        [ENABLE_ERROR_MESSAGES=$enableval],
        [ENABLE_ERROR_MESSAGES=yes])
 AC_MSG_RESULT([$ENABLE_ERROR_MESSAGES])
index f074be12213a60155ef533d36a427295bea9e548..a01607bddffbd5b892b4db8707552fed10c1441a 100644 (file)
@@ -220,7 +220,7 @@ $ wimupdate boot.wim 2 < update_commands.txt
 .PP
 Add some files and directories to a WIM image.  Note that the first path of each
 \fBadd\fR command specifies the files to add, while the second path of each
 .PP
 Add some files and directories to a WIM image.  Note that the first path of each
 \fBadd\fR command specifies the files to add, while the second path of each
-\fBadd\fR command specify the locations at which to to add them inside the WIM
+\fBadd\fR command specify the locations at which to add them inside the WIM
 image:
 .PP
 .RS
 image:
 .PP
 .RS
index 35d2236f8994cf3186958deac7c992f78927d811..521b32fbd99d4f1596be4e7fac6a8db9f9f033c4 100644 (file)
@@ -2738,7 +2738,7 @@ wimlib_add_tree(WIMStruct *wim, int image,
  * @param wim_ret
  *     On success, a pointer to the new ::WIMStruct is written to the memory
  *     location pointed to by this parameter.  This ::WIMStruct must be freed
  * @param wim_ret
  *     On success, a pointer to the new ::WIMStruct is written to the memory
  *     location pointed to by this parameter.  This ::WIMStruct must be freed
- *     using using wimlib_free() when finished with it.
+ *     using wimlib_free() when finished with it.
  *
  * @return 0 on success; a ::wimlib_error_code value on failure.
  *
  *
  * @return 0 on success; a ::wimlib_error_code value on failure.
  *
@@ -3623,8 +3623,8 @@ wimlib_mount_image(WIMStruct *wim,
  * @param wim_ret
  *     On success, a pointer to a new ::WIMStruct backed by the specified
  *     on-disk WIM file is written to the memory location pointed to by this
  * @param wim_ret
  *     On success, a pointer to a new ::WIMStruct backed by the specified
  *     on-disk WIM file is written to the memory location pointed to by this
- *     parameter.  This ::WIMStruct must be freed using using wimlib_free()
- *     when finished with it.
+ *     parameter.  This ::WIMStruct must be freed using wimlib_free() when
+ *     finished with it.
  *
  * @return 0 on success; a ::wimlib_error_code value on failure.
  *
  *
  * @return 0 on success; a ::wimlib_error_code value on failure.
  *
index ab8d08467e717a9fd093488094453cecc394e586..3fcde0111d6c55d06d8dcef5611197bae61b1823 100644 (file)
@@ -900,7 +900,7 @@ read_blob_table(WIMStruct *wim)
        if (!table)
                goto oom;
 
        if (!table)
                goto oom;
 
-       /* Allocate and initalize blob descriptors from the raw blob table
+       /* Allocate and initialize blob descriptors from the raw blob table
         * buffer.  */
        for (size_t i = 0; i < num_entries; i++) {
                const struct blob_descriptor_disk *disk_entry =
         * buffer.  */
        for (size_t i = 0; i < num_entries; i++) {
                const struct blob_descriptor_disk *disk_entry =
index c6d1133f901c909181a170f9bab0b1870358b7ab..544bcd14888b1f3de373bb28a6755806a6ce94c9 100644 (file)
@@ -544,18 +544,17 @@ gen_codewords(u32 A[restrict], u8 lens[restrict],
  * shortening the longest codeword that is generated.
  *
  * There also is the issue of how codewords longer than @max_codeword_len
  * shortening the longest codeword that is generated.
  *
  * There also is the issue of how codewords longer than @max_codeword_len
- * are dealt with.  Fortunately, for LZMS this is irrelevant because
- * because for the LZMS alphabets no codeword can ever exceed
- * LZMS_MAX_CODEWORD_LEN (= 15).  Since the LZMS algorithm regularly
- * halves all frequencies, the frequencies cannot become high enough for
- * a length 16 codeword to be generated.  Specifically, I think that if
- * ties are broken in favor of non-leaves (as we do), the lowest total
- * frequency that would give a length-16 codeword would be the sum of the
- * frequencies 1 1 1 3 4 7 11 18 29 47 76 123 199 322 521 843 1364, which
- * is 3570.  And in LZMS we can't get a frequency that high based on the
- * alphabet sizes, rebuild frequencies, and scaling factors.  This
- * worst-case scenario is based on the following degenerate case (only
- * the bottom of the tree shown):
+ * are dealt with.  Fortunately, for LZMS this is irrelevant because for
+ * the LZMS alphabets no codeword can ever exceed LZMS_MAX_CODEWORD_LEN
+ * (= 15).  Since the LZMS algorithm regularly halves all frequencies,
+ * the frequencies cannot become high enough for a length 16 codeword to
+ * be generated.  Specifically, I think that if ties are broken in favor
+ * of non-leaves (as we do), the lowest total frequency that would give a
+ * length-16 codeword would be the sum of the frequencies 1 1 1 3 4 7 11
+ * 18 29 47 76 123 199 322 521 843 1364, which is 3570.  And in LZMS we
+ * can't get a frequency that high based on the alphabet sizes, rebuild
+ * frequencies, and scaling factors.  This worst-case scenario is based
+ * on the following degenerate case (only the bottom of the tree shown):
  *
  *                          ...
  *                        17
  *
  *                          ...
  *                        17
index ac87a807bd9a3b726e891c99b1a0150ec2cba868..110db5dd3fc7eaf87a2e2d1991bc1d174bebd7b1 100644 (file)
@@ -1227,7 +1227,7 @@ lzx_flush_block(struct lzx_compressor *c, struct lzx_output_bitstream *os,
  * but rather we combine many symbols into a single "observation type".  For
  * literals we only look at the high bits and low bits, and for matches we only
  * look at whether the match is long or not.  The assumption is that for typical
  * but rather we combine many symbols into a single "observation type".  For
  * literals we only look at the high bits and low bits, and for matches we only
  * look at whether the match is long or not.  The assumption is that for typical
- * "real" data, places that are good block boundaries will tend to be noticable
+ * "real" data, places that are good block boundaries will tend to be noticeable
  * based only on changes in these aggregate frequencies, without looking for
  * subtle differences in individual symbols.  For example, a change from ASCII
  * bytes to non-ASCII bytes, or from few matches (generally less compressible)
  * based only on changes in these aggregate frequencies, without looking for
  * subtle differences in individual symbols.  For example, a change from ASCII
  * bytes to non-ASCII bytes, or from few matches (generally less compressible)
index c55847d23147d8f4ed5ec826e10e0c929d0cb717..8b795f458dd2ead757ec0908eae1d648466f74c1 100644 (file)
@@ -1094,7 +1094,7 @@ prepare_target(struct list_head *dentry_list, struct win32_apply_ctx *ctx)
 
        path_max = compute_path_max(dentry_list);
        /* Add some extra for building Win32 paths for the file encryption APIs,
 
        path_max = compute_path_max(dentry_list);
        /* Add some extra for building Win32 paths for the file encryption APIs,
-        * and ensure we have at least enough to potentially use a 8.3 name for
+        * and ensure we have at least enough to potentially use an 8.3 name for
         * the last component.  */
        path_max += max(2 + (ctx->target_ntpath.Length / sizeof(wchar_t)),
                        8 + 1 + 3);
         * the last component.  */
        path_max += max(2 + (ctx->target_ntpath.Length / sizeof(wchar_t)),
                        8 + 1 + 3);
index 8a07325ab0cc746387b360f2aeba88409a61d3fe..3c050d7fe0e8fe61eae31dc92df192cef85263ab 100755 (executable)
@@ -128,7 +128,7 @@ if ! wimmountrw dir.wim dir tmp.mnt; then
        error "Failed to re-mount test WIM read-write"
 fi
 if ! imagex_unmount tmp.mnt --commit --check; then
        error "Failed to re-mount test WIM read-write"
 fi
 if ! imagex_unmount tmp.mnt --commit --check; then
-       error "Failed to unmount read-write mounted WIM with changes commited (no changes made)"
+       error "Failed to unmount read-write mounted WIM with changes committed (no changes made)"
 fi
 echo "Testing removing file from mounted WIM"
 if ! wimmountrw dir.wim dir tmp.mnt; then
 fi
 echo "Testing removing file from mounted WIM"
 if ! wimmountrw dir.wim dir tmp.mnt; then