mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
parent
41239c9dac
commit
1c204d5564
2
.gitignore
vendored
2
.gitignore
vendored
@ -14,7 +14,7 @@
|
|||||||
*.exe
|
*.exe
|
||||||
*.lib
|
*.lib
|
||||||
|
|
||||||
# Patch leaves these lying arround
|
# Patch leaves these lying around
|
||||||
*.orig
|
*.orig
|
||||||
*.rej
|
*.rej
|
||||||
|
|
||||||
|
2
buffer.c
2
buffer.c
@ -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
|
||||||
|
@ -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)
|
||||||
|
@ -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
|
||||||
|
@ -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])
|
||||||
|
|
||||||
|
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user