summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-10-26 11:12:37 +0100
committerChristian Grothoff <christian@grothoff.org>2020-10-26 11:12:37 +0100
commit161aecb855156aadbf167b31341614807ca336ca (patch)
tree67c8a80adf1ca4dc6a5b7b6cc7b979d9d5788fb8
parente51f24bf207c3f2ee3695be1b79c777223d50af9 (diff)
fix typos
-rw-r--r--src/common/convert.c2
-rw-r--r--src/common/unzip.c16
-rw-r--r--src/main/extractor_plugin_main.c6
-rw-r--r--src/main/extractor_plugins.c4
-rw-r--r--src/plugins/man_extractor.c2
5 files changed, 15 insertions, 15 deletions
diff --git a/src/common/convert.c b/src/common/convert.c
index a8a6b9d..d7aa04c 100644
--- a/src/common/convert.c
+++ b/src/common/convert.c
@@ -32,7 +32,7 @@
* @param charset input character set
* @return the converted string (0-terminated), NULL on error
* @return the converted string (0-terminated),
- * if conversion fails, a copy of the orignal
+ * if conversion fails, a copy of the original
* string is returned.
*/
char *
diff --git a/src/common/unzip.c b/src/common/unzip.c
index a469a5b..6f6eef7 100644
--- a/src/common/unzip.c
+++ b/src/common/unzip.c
@@ -331,7 +331,7 @@ struct EXTRACTOR_UnzipFile
/**
* Read a byte from a gz_stream; update next_in and avail_in. Return EOF
* for end of file.
- * IN assertion: the stream s has been sucessfully opened for reading.
+ * IN assertion: the stream s has been successfully opened for reading.
*
* @param ffd functions for performing IO operations
* @param pi where to store the byte that was read
@@ -353,7 +353,7 @@ read_byte_from_ffd (const struct FileFuncDefs *ffd,
/**
* Read a short (2 bytes) from a gz_stream; update next_in and avail_in. Return EOF
* for end of file.
- * IN assertion: the stream s has been sucessfully opened for reading.
+ * IN assertion: the stream s has been successfully opened for reading.
*
* @param ffd functions for performing IO operations
* @param pi where to store the short that was read
@@ -382,7 +382,7 @@ read_short_from_ffd (const struct FileFuncDefs *ffd,
/**
* Read a 'long' (4 bytes) from a gz_stream; update next_in and avail_in. Return EOF
* for end of file.
- * IN assertion: the stream s has been sucessfully opened for reading.
+ * IN assertion: the stream s has been successfully opened for reading.
*
* @param ffd functions for performing IO operations
* @param pi where to store the long that was read
@@ -434,7 +434,7 @@ read_long_from_ffd (const struct FileFuncDefs *ffd,
* @param filename2 name of second file
* @param iCaseSensitivity, use 1 for case sensitivity (like strcmp);
* 2 for no case sensitivity (like strcmpi or strcasecmp); or
- * 0 for defaut of your operating system (like 1 on Unix, 2 on Windows)
+ * 0 for default of your operating system (like 1 on Unix, 2 on Windows)
* @return 0 if names are equal
*/
static int
@@ -735,9 +735,9 @@ unzip_open_using_ffd (struct FileFuncDefs *ffd)
uLong central_pos;
uLong uL;
uLong number_disk; /* number of the current dist, used for
- spaning ZIP, unsupported, always 0*/
+ spanning ZIP, unsupported, always 0*/
uLong number_disk_with_CD; /* number of the disk with central dir, used
- for spaning ZIP, unsupported, always 0*/
+ for spanning ZIP, unsupported, always 0*/
uLong number_entry_CD; /* total number of entries in
the central dir
(same than number_entry on nospan) */
@@ -961,7 +961,7 @@ EXTRACTOR_common_unzip_go_to_next_file (struct EXTRACTOR_UnzipFile *file)
* @param szFileName name to find
* @param iCaseSensitivity, use 1 for case sensitivity (like strcmp);
* 2 for no case sensitivity (like strcmpi or strcasecmp); or
- * 0 for defaut of your operating system (like 1 on Unix, 2 on Windows)
+ * 0 for default of your operating system (like 1 on Unix, 2 on Windows)
* @return #EXTRACTOR_UNZIP_OK if the file is found. It becomes the current file.
* #EXTRACTOR_UNZIP_END_OF_LIST_OF_FILE if the file is not found
*/
@@ -1029,7 +1029,7 @@ EXTRACTOR_common_unzip_go_find_local_file (struct EXTRACTOR_UnzipFile *file,
*
* @param buf contain buffer where data must be copied
* @param len the size of buf.
- * @return the number of byte copied if somes bytes are copied
+ * @return the number of byte copied if some bytes are copied
* 0 if the end of file was reached
* <0 with error code if there is an error
* (#EXTRACTOR_UNZIP_ERRNO for IO error, or zLib error for uncompress error)
diff --git a/src/main/extractor_plugin_main.c b/src/main/extractor_plugin_main.c
index b7b2996..ee51c8f 100644
--- a/src/main/extractor_plugin_main.c
+++ b/src/main/extractor_plugin_main.c
@@ -106,7 +106,7 @@ struct ProcessingContext
/**
* Moves current absolute buffer position to 'pos' in 'whence' mode.
- * Will move logical position withouth shifting the buffer, if possible.
+ * Will move logical position without shifting the buffer, if possible.
* Will not move beyond the end of file.
*
* @param plugin plugin context
@@ -251,7 +251,7 @@ plugin_env_seek (void *cls,
* @param plugin plugin context
* @param data location to store data pointer
* @param count number of bytes to read
- * @return number of bytes (<= count) avalable in @a data, -1 on error
+ * @return number of bytes (<= count) available in @a data, -1 on error
*/
static ssize_t
plugin_env_read (void *cls,
@@ -550,7 +550,7 @@ process_requests (struct ProcessingContext *pc)
/* odd, we're already in the start state... */
continue;
default:
- LOG ("Received invalid messag %d\n", (int) code);
+ LOG ("Received invalid message %d\n", (int) code);
/* error, unexpected message */
return;
}
diff --git a/src/main/extractor_plugins.c b/src/main/extractor_plugins.c
index 1ab777b..147efda 100644
--- a/src/main/extractor_plugins.c
+++ b/src/main/extractor_plugins.c
@@ -200,7 +200,7 @@ EXTRACTOR_plugin_load_ (struct EXTRACTOR_PluginList *plugin)
* @param library the name of the library
* @param options options to pass to the plugin
* @param flags options to use
- * @return the new list of libraries, equal to prev iff an error occured
+ * @return the new list of libraries, equal to prev iff an error occurred
*/
struct EXTRACTOR_PluginList *
EXTRACTOR_plugin_add (struct EXTRACTOR_PluginList *prev,
@@ -254,7 +254,7 @@ EXTRACTOR_plugin_add (struct EXTRACTOR_PluginList *prev,
* the library list.
* @param prev the previous list of libraries, may be NULL
* @param flags options to use
- * @return the new list of libraries, equal to prev iff an error occured
+ * @return the new list of libraries, equal to prev iff an error occurred
* or if config was empty (or NULL).
*/
struct EXTRACTOR_PluginList *
diff --git a/src/plugins/man_extractor.c b/src/plugins/man_extractor.c
index 86ba68d..e22fca4 100644
--- a/src/plugins/man_extractor.c
+++ b/src/plugins/man_extractor.c
@@ -52,7 +52,7 @@ stndup (const char *str, size_t n)
* makes sure we don't pass empty strings or NULL pointers.
*
* @param type metadata type to use
- * @param keyword metdata value; freed in the process
+ * @param keyword metadata value; freed in the process
* @param proc function to call with meta data
* @param proc_cls closure for 'proc'
* @return 0 to continue extracting, 1 if we are done