fix flags definition placements in http.c

This commit is contained in:
Kirill Rodriguez 2024-10-29 11:43:02 +00:00
parent a92ce7e111
commit c35d406d10
No known key found for this signature in database
GPG Key ID: 2AA85EC2AD7F85EA

18
http.c
View File

@ -128,15 +128,6 @@
#define NI_NUMERICSERV 2
#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
fake_getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
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))
#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;
static evutil_socket_t create_bind_socket_nonblock(struct evutil_addrinfo *, int reuse);