Fix some typos (#1284)

Signed-off-by: cuishuang <imcusg@gmail.com>
This commit is contained in:
cui fliter 2022-06-13 04:58:50 +08:00 committed by GitHub
parent 41239c9dac
commit 1c204d5564
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

2
.gitignore vendored
View File

@ -14,7 +14,7 @@
*.exe *.exe
*.lib *.lib
# Patch leaves these lying arround # Patch leaves these lying around
*.orig *.orig
*.rej *.rej

View File

@ -1668,7 +1668,7 @@ evbuffer_search_eol(struct evbuffer *buffer,
if (evbuffer_strchr(&it, '\n') < 0) if (evbuffer_strchr(&it, '\n') < 0)
goto done; goto done;
extra_drain = 1; extra_drain = 1;
/* ... optionally preceeded by a CR. */ /* ... optionally preceded by a CR. */
if (it.pos == start_pos) if (it.pos == start_pos)
break; /* If the first character is \n, don't back up */ break; /* If the first character is \n, don't back up */
/* This potentially does an extra linear walk over the first /* This potentially does an extra linear walk over the first

View File

@ -69,7 +69,7 @@ struct evbuffer_overlapped {
WSABUF buffers[MAX_WSABUFS]; 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. */ * the evbuffer isn't overlapped. */
static inline struct evbuffer_overlapped * static inline struct evbuffer_overlapped *
upcast_evbuffer(struct evbuffer *buf) upcast_evbuffer(struct evbuffer *buf)

View File

@ -76,7 +76,7 @@ ev_token_bucket_update_(struct ev_token_bucket *bucket,
ev_uint32_t current_tick) ev_uint32_t current_tick)
{ {
/* It's okay if the tick number overflows, since we'll just /* 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; unsigned n_ticks = current_tick - bucket->last_updated;
/* Make sure some ticks actually happened, and that time didn't /* Make sure some ticks actually happened, and that time didn't

View File

@ -766,7 +766,7 @@ if test "$enable_gcc_warnings" != "no" && test "$GCC" = "yes"; then
AX_CHECK_COMPILE_FLAG([-Werror], [CFLAGS="$CFLAGS -Werror"]) AX_CHECK_COMPILE_FLAG([-Werror], [CFLAGS="$CFLAGS -Werror"])
fi 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-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]) AX_CHECK_COMPILE_FLAG([-Wno-void-pointer-to-enum-cast], [CFLAGS="$CFLAGS -Wno-void-pointer-to-enum-cast"],[],[-Werror])

View File

@ -129,7 +129,7 @@ struct {
int (*header_cb)(struct evhttp_request *, void *); 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_error for error types.
* *
* @see evhttp_request_set_error_cb() * @see evhttp_request_set_error_cb()