mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
fix flags definition placements in http.c
This commit is contained in:
parent
a92ce7e111
commit
c35d406d10
18
http.c
18
http.c
@ -128,15 +128,6 @@
|
|||||||
#define NI_NUMERICSERV 2
|
#define NI_NUMERICSERV 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** The request obj owns the evhttp connection and needs to free it */
|
|
||||||
#define EVHTTP_REQ_OWN_CONNECTION 0x0001
|
|
||||||
/** The request object is owned by the user; the user must free it */
|
|
||||||
#define EVHTTP_USER_OWNED 0x0004
|
|
||||||
/** The request will be used again upstack; freeing must be deferred */
|
|
||||||
#define EVHTTP_REQ_DEFER_FREE 0x0008
|
|
||||||
/** The request should be freed upstack */
|
|
||||||
#define EVHTTP_REQ_NEEDS_FREE 0x0010
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
fake_getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
|
fake_getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
|
||||||
size_t hostlen, char *serv, size_t servlen, int flags)
|
size_t hostlen, char *serv, size_t servlen, int flags)
|
||||||
@ -188,6 +179,15 @@ fake_getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
|
|||||||
#define MIN(a,b) (((a)<(b))?(a):(b))
|
#define MIN(a,b) (((a)<(b))?(a):(b))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/** The request obj owns the evhttp connection and needs to free it */
|
||||||
|
#define EVHTTP_REQ_OWN_CONNECTION 0x0001
|
||||||
|
/** The request object is owned by the user; the user must free it */
|
||||||
|
#define EVHTTP_USER_OWNED 0x0004
|
||||||
|
/** The request will be used again upstack; freeing must be deferred */
|
||||||
|
#define EVHTTP_REQ_DEFER_FREE 0x0008
|
||||||
|
/** The request should be freed upstack */
|
||||||
|
#define EVHTTP_REQ_NEEDS_FREE 0x0010
|
||||||
|
|
||||||
extern int debug;
|
extern int debug;
|
||||||
|
|
||||||
static evutil_socket_t create_bind_socket_nonblock(struct evutil_addrinfo *, int reuse);
|
static evutil_socket_t create_bind_socket_nonblock(struct evutil_addrinfo *, int reuse);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user