]> granicus.if.org Git - libevent/commitdiff
Fix some typos (#1284)
authorcui fliter <imcusg@gmail.com>
Sun, 12 Jun 2022 20:58:50 +0000 (04:58 +0800)
committerGitHub <noreply@github.com>
Sun, 12 Jun 2022 20:58:50 +0000 (23:58 +0300)
Signed-off-by: cuishuang <imcusg@gmail.com>
.gitignore
buffer.c
buffer_iocp.c
bufferevent_ratelim.c
configure.ac
include/event2/http_struct.h

index 28bab0a472737e6dfa9d37f860f1fa28835bcd6f..ce2875b649289ac8e697f32b4f08255b4c17098d 100644 (file)
@@ -14,7 +14,7 @@
 *.exe
 *.lib
 
-# Patch leaves these lying arround
+# Patch leaves these lying around
 *.orig
 *.rej
 
index 6c96f05422ace058bf6873db485fe8f85f399484..fcbcba3c2614bd614051c4c38dc8f8f91ae11277 100644 (file)
--- a/buffer.c
+++ b/buffer.c
@@ -1668,7 +1668,7 @@ evbuffer_search_eol(struct evbuffer *buffer,
                if (evbuffer_strchr(&it, '\n') < 0)
                        goto done;
                extra_drain = 1;
-               /* ... optionally preceeded by a CR. */
+               /* ... optionally preceded by a CR. */
                if (it.pos == start_pos)
                        break; /* If the first character is \n, don't back up */
                /* This potentially does an extra linear walk over the first
index 2af0c49cc64b3a8ca547c8354bab2452f6c6a2e9..77619760ccfe65caf0af6bcd449980558134def1 100644 (file)
@@ -69,7 +69,7 @@ struct evbuffer_overlapped {
        WSABUF buffers[MAX_WSABUFS];
 };
 
-/** Given an evbuffer, return the correponding evbuffer structure, or NULL if
+/** Given an evbuffer, return the corresponding evbuffer structure, or NULL if
  * the evbuffer isn't overlapped. */
 static inline struct evbuffer_overlapped *
 upcast_evbuffer(struct evbuffer *buf)
index 3b7ae51b4522fcccda382f7c05acc7b9fefb13ac..1fed9d15d94071e2f4c87182cf6757535290693f 100644 (file)
@@ -76,7 +76,7 @@ ev_token_bucket_update_(struct ev_token_bucket *bucket,
     ev_uint32_t current_tick)
 {
        /* It's okay if the tick number overflows, since we'll just
-        * wrap around when we do the unsigned substraction. */
+        * wrap around when we do the unsigned subtraction. */
        unsigned n_ticks = current_tick - bucket->last_updated;
 
        /* Make sure some ticks actually happened, and that time didn't
index b91c5878fbcca13df68a17bda18a3460606d1ce6..b73ac4242fcd350f80369c06656d5117890c17d8 100644 (file)
@@ -766,7 +766,7 @@ if test "$enable_gcc_warnings" != "no" && test "$GCC" = "yes"; then
     AX_CHECK_COMPILE_FLAG([-Werror], [CFLAGS="$CFLAGS -Werror"])
   fi
 
-  dnl Disable warnings for unused paramaters
+  dnl Disable warnings for unused parameters
   AX_CHECK_COMPILE_FLAG([-Wno-unused-parameter], [CFLAGS="$CFLAGS -Wno-unused-parameter"],[],[-Werror])
   AX_CHECK_COMPILE_FLAG([-Wno-void-pointer-to-enum-cast], [CFLAGS="$CFLAGS -Wno-void-pointer-to-enum-cast"],[],[-Werror])
 
index 4bf5b1ff60f52b6b3d8e1483baf442cc82885cdd..b828180e3b75117fb9caa2324130607bafc27a2c 100644 (file)
@@ -129,7 +129,7 @@ struct {
        int (*header_cb)(struct evhttp_request *, void *);
 
        /*
-        * Error callback - called when error is occured.
+        * Error callback - called when error is occurred.
         * @see evhttp_request_error for error types.
         *
         * @see evhttp_request_set_error_cb()