Skip to content

Commit 1c204d5

Browse files
authored
Fix some typos (libevent#1284)
Signed-off-by: cuishuang <[email protected]>
1 parent 41239c9 commit 1c204d5

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*.exe
1515
*.lib
1616

17-
# Patch leaves these lying arround
17+
# Patch leaves these lying around
1818
*.orig
1919
*.rej
2020

buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,7 @@ evbuffer_search_eol(struct evbuffer *buffer,
16681668
if (evbuffer_strchr(&it, '\n') < 0)
16691669
goto done;
16701670
extra_drain = 1;
1671-
/* ... optionally preceeded by a CR. */
1671+
/* ... optionally preceded by a CR. */
16721672
if (it.pos == start_pos)
16731673
break; /* If the first character is \n, don't back up */
16741674
/* This potentially does an extra linear walk over the first

buffer_iocp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ struct evbuffer_overlapped {
6969
WSABUF buffers[MAX_WSABUFS];
7070
};
7171

72-
/** Given an evbuffer, return the correponding evbuffer structure, or NULL if
72+
/** Given an evbuffer, return the corresponding evbuffer structure, or NULL if
7373
* the evbuffer isn't overlapped. */
7474
static inline struct evbuffer_overlapped *
7575
upcast_evbuffer(struct evbuffer *buf)

bufferevent_ratelim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ ev_token_bucket_update_(struct ev_token_bucket *bucket,
7676
ev_uint32_t current_tick)
7777
{
7878
/* It's okay if the tick number overflows, since we'll just
79-
* wrap around when we do the unsigned substraction. */
79+
* wrap around when we do the unsigned subtraction. */
8080
unsigned n_ticks = current_tick - bucket->last_updated;
8181

8282
/* Make sure some ticks actually happened, and that time didn't

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ if test "$enable_gcc_warnings" != "no" && test "$GCC" = "yes"; then
766766
AX_CHECK_COMPILE_FLAG([-Werror], [CFLAGS="$CFLAGS -Werror"])
767767
fi
768768

769-
dnl Disable warnings for unused paramaters
769+
dnl Disable warnings for unused parameters
770770
AX_CHECK_COMPILE_FLAG([-Wno-unused-parameter], [CFLAGS="$CFLAGS -Wno-unused-parameter"],[],[-Werror])
771771
AX_CHECK_COMPILE_FLAG([-Wno-void-pointer-to-enum-cast], [CFLAGS="$CFLAGS -Wno-void-pointer-to-enum-cast"],[],[-Werror])
772772

include/event2/http_struct.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ struct {
129129
int (*header_cb)(struct evhttp_request *, void *);
130130

131131
/*
132-
* Error callback - called when error is occured.
132+
* Error callback - called when error is occurred.
133133
* @see evhttp_request_error for error types.
134134
*
135135
* @see evhttp_request_set_error_cb()

0 commit comments

Comments
 (0)