diff options
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/addr.h | 4 | ||||
-rw-r--r-- | src/libutil/fstring.c | 2 | ||||
-rw-r--r-- | src/libutil/fstring.h | 2 | ||||
-rw-r--r-- | src/libutil/http.h | 2 | ||||
-rw-r--r-- | src/libutil/logger.c | 4 | ||||
-rw-r--r-- | src/libutil/map.c | 2 | ||||
-rw-r--r-- | src/libutil/mem_pool.h | 4 | ||||
-rw-r--r-- | src/libutil/multipattern.h | 2 | ||||
-rw-r--r-- | src/libutil/printf.h | 2 | ||||
-rw-r--r-- | src/libutil/radix.h | 2 | ||||
-rw-r--r-- | src/libutil/str_util.h | 2 |
11 files changed, 14 insertions, 14 deletions
diff --git a/src/libutil/addr.h b/src/libutil/addr.h index 9b0921747..046d5f040 100644 --- a/src/libutil/addr.h +++ b/src/libutil/addr.h @@ -73,7 +73,7 @@ rspamd_inet_addr_t * rspamd_inet_address_from_rnds ( * Parse string with ipv6 address of length `len` to `target` which should be * at least sizeof (in6_addr_t) * @param text input string - * @param len lenth of `text` (if 0, then `text` must be zero terminated) + * @param len length of `text` (if 0, then `text` must be zero terminated) * @param target target structure * @return TRUE if the address has been parsed, otherwise `target` content is undefined */ @@ -84,7 +84,7 @@ gboolean rspamd_parse_inet_address_ip6 (const guchar *text, gsize len, * Parse string with ipv4 address of length `len` to `target` which should be * at least sizeof (in4_addr_t) * @param text input string - * @param len lenth of `text` (if 0, then `text` must be zero terminated) + * @param len length of `text` (if 0, then `text` must be zero terminated) * @param target target structure * @return TRUE if the address has been parsed, otherwise `target` content is undefined */ diff --git a/src/libutil/fstring.c b/src/libutil/fstring.c index 4aa678b0b..101bfa9f0 100644 --- a/src/libutil/fstring.c +++ b/src/libutil/fstring.c @@ -230,7 +230,7 @@ fstrhash_c (gchar c, guint32 hval) guint32 tmp; /* * xor in the current byte against each byte of hval - * (which alone gaurantees that every bit of input will have + * (which alone guarantees that every bit of input will have * an effect on the output) */ tmp = c & 0xFF; diff --git a/src/libutil/fstring.h b/src/libutil/fstring.h index ac69b01df..1d1d3b137 100644 --- a/src/libutil/fstring.h +++ b/src/libutil/fstring.h @@ -77,7 +77,7 @@ rspamd_fstring_t *rspamd_fstring_append_chars (rspamd_fstring_t *str, char c, gsize len) G_GNUC_WARN_UNUSED_RESULT; /** - * Erase `len` characters at postion `pos` + * Erase `len` characters at position `pos` */ void rspamd_fstring_erase (rspamd_fstring_t *str, gsize pos, gsize len); diff --git a/src/libutil/http.h b/src/libutil/http.h index 51d5098d8..e2e332d6f 100644 --- a/src/libutil/http.h +++ b/src/libutil/http.h @@ -545,7 +545,7 @@ void rspamd_http_router_handle_socket ( void rspamd_http_router_free (struct rspamd_http_connection_router *router); /** - * Extract arguments from a messsage's URI contained inside query string decoding + * Extract arguments from a message's URI contained inside query string decoding * them if needed * @param msg HTTP request message * @return new GHashTable which maps rspamd_ftok_t* to rspamd_ftok_t* diff --git a/src/libutil/logger.c b/src/libutil/logger.c index faab981d9..d4e3e95a7 100644 --- a/src/libutil/logger.c +++ b/src/libutil/logger.c @@ -762,12 +762,12 @@ file_log_helper (rspamd_logger_t *rspamd_log, } /* Fill buffer */ if (rspamd_log->io_buf.size < len) { - /* Buffer is too small to hold this string, so write it dirrectly */ + /* Buffer is too small to hold this string, so write it directly */ rspamd_log_flush (rspamd_log); direct_write_log_line (rspamd_log, (void *) iov, iovcnt, TRUE); } else if (rspamd_log->io_buf.used + len >= rspamd_log->io_buf.size) { - /* Buffer is full, try to write it dirrectly */ + /* Buffer is full, try to write it directly */ rspamd_log_flush (rspamd_log); fill_buffer (rspamd_log, iov, iovcnt); } diff --git a/src/libutil/map.c b/src/libutil/map.c index b8d04dc5d..77103ac00 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -396,7 +396,7 @@ http_map_finish (struct rspamd_http_connection *conn, return 0; } else { - /* Unsinged version - just open file */ + /* Unsigned version - just open file */ cbd->shmem_data = rspamd_http_message_shmem_ref (msg); cbd->data_len = msg->body_buf.len; diff --git a/src/libutil/mem_pool.h b/src/libutil/mem_pool.h index f16d454f2..2771be0db 100644 --- a/src/libutil/mem_pool.h +++ b/src/libutil/mem_pool.h @@ -254,13 +254,13 @@ void rspamd_mempool_unlock_mutex (rspamd_mempool_mutex_t *mutex); rspamd_mempool_rwlock_t * rspamd_mempool_get_rwlock (rspamd_mempool_t *pool); /** - * Aquire read lock + * Acquire read lock * @param lock rwlock object */ void rspamd_mempool_rlock_rwlock (rspamd_mempool_rwlock_t *lock); /** - * Aquire write lock + * Acquire write lock * @param lock rwlock object */ void rspamd_mempool_wlock_rwlock (rspamd_mempool_rwlock_t *lock); diff --git a/src/libutil/multipattern.h b/src/libutil/multipattern.h index 6a7dd4a88..785c09e3d 100644 --- a/src/libutil/multipattern.h +++ b/src/libutil/multipattern.h @@ -124,7 +124,7 @@ gboolean rspamd_multipattern_compile (struct rspamd_multipattern *mp, * @param in * @param len * @param cb if callback returns non-zero, then search is terminated and that value is returned - * @param ud calback data + * @param ud callback data * @return */ gint rspamd_multipattern_lookup (struct rspamd_multipattern *mp, diff --git a/src/libutil/printf.h b/src/libutil/printf.h index 043b347a2..7cf3bd4a8 100644 --- a/src/libutil/printf.h +++ b/src/libutil/printf.h @@ -55,7 +55,7 @@ /** * Callback used for common printf operations * @param buf buffer to append - * @param buflen lenght of the buffer + * @param buflen length of the buffer * @param ud opaque pointer * @return number of characters written */ diff --git a/src/libutil/radix.h b/src/libutil/radix.h index fc6e0db1e..c04528000 100644 --- a/src/libutil/radix.h +++ b/src/libutil/radix.h @@ -30,7 +30,7 @@ typedef struct radix_tree_compressed radix_compressed_t; * @param tree radix trie * @param key key to insert (bitstring) * @param keylen length of the key (in bytes) - * @param masklen lenght of mask that should be applied to the key (in bits) + * @param masklen length of mask that should be applied to the key (in bits) * @param value opaque value pointer * @return previous value of the key or `RADIX_NO_VALUE` */ diff --git a/src/libutil/str_util.h b/src/libutil/str_util.h index 473b5cbbb..3c2af2fb3 100644 --- a/src/libutil/str_util.h +++ b/src/libutil/str_util.h @@ -65,7 +65,7 @@ guint rspamd_gstring_icase_hash (gconstpointer key); gboolean rspamd_gstring_icase_equal (gconstpointer v, gconstpointer v2); /** - * Copy src to dest limited to len, in compare with standart strlcpy(3) rspamd strlcpy does not + * Copy src to dest limited to len, in compare with standard strlcpy(3) rspamd strlcpy does not * traverse the whole string and it is possible to use it for non NULL terminated strings. This is * more like memccpy(dst, src, size, '\0') * |