mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-15 15:25:09 -04:00
from trunk: remove NDEBUG ifdefs from evdns.c
svn:r648
This commit is contained in:
parent
29e9b1d20a
commit
8b116c762b
@ -7,6 +7,7 @@ Changes in 1.4.2:
|
|||||||
o Add a int64_t parsing function, with unit tests, so we can apply Scott Lamb's fix to allow large HTTP values.
|
o Add a int64_t parsing function, with unit tests, so we can apply Scott Lamb's fix to allow large HTTP values.
|
||||||
o Use a 64-bit field to hold HTTP content-lengths. Patch from Scott Lamb.
|
o Use a 64-bit field to hold HTTP content-lengths. Patch from Scott Lamb.
|
||||||
o Allow regression code to build even without Python installed
|
o Allow regression code to build even without Python installed
|
||||||
|
o remove NDEBUG ifdefs from evdns.c
|
||||||
|
|
||||||
Changes in 1.4.1-beta:
|
Changes in 1.4.1-beta:
|
||||||
o free minheap on event_base_free(); from Christopher Layne
|
o free minheap on event_base_free(); from Christopher Layne
|
||||||
@ -32,7 +33,7 @@ Changes in 1.4.1-beta:
|
|||||||
o When building with GCC, use the "format" attribute to verify type correctness of calls to printf-like functions.
|
o When building with GCC, use the "format" attribute to verify type correctness of calls to printf-like functions.
|
||||||
o removed linger from http server socket; reported by Ilya Martynov
|
o removed linger from http server socket; reported by Ilya Martynov
|
||||||
o Rewrite win32.c backend to be O(n lg n) rather than O(n^2)
|
o Rewrite win32.c backend to be O(n lg n) rather than O(n^2)
|
||||||
|
|
||||||
Changes in 1.4.0-beta:
|
Changes in 1.4.0-beta:
|
||||||
o allow \r or \n individually to separate HTTP headers instead of the standard "\r\n"; from Charles Kerr.
|
o allow \r or \n individually to separate HTTP headers instead of the standard "\r\n"; from Charles Kerr.
|
||||||
o demote most http warnings to debug messages
|
o demote most http warnings to debug messages
|
||||||
|
6
evdns.c
6
evdns.c
@ -47,8 +47,6 @@
|
|||||||
#include <sys/timeb.h>
|
#include <sys/timeb.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* #define NDEBUG */
|
|
||||||
|
|
||||||
#ifndef DNS_USE_CPU_CLOCK_FOR_ID
|
#ifndef DNS_USE_CPU_CLOCK_FOR_ID
|
||||||
#ifndef DNS_USE_GETTIMEOFDAY_FOR_ID
|
#ifndef DNS_USE_GETTIMEOFDAY_FOR_ID
|
||||||
#ifndef DNS_USE_OPENSSL_FOR_ID
|
#ifndef DNS_USE_OPENSSL_FOR_ID
|
||||||
@ -128,9 +126,7 @@
|
|||||||
#define HOST_NAME_MAX 255
|
#define HOST_NAME_MAX 255
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#undef MIN
|
#undef MIN
|
||||||
#define MIN(a,b) ((a)<(b)?(a):(b))
|
#define MIN(a,b) ((a)<(b)?(a):(b))
|
||||||
@ -388,7 +384,6 @@ inet_aton(const char *c, struct in_addr *addr)
|
|||||||
#define ISSPACE(c) isspace((int)(unsigned char)(c))
|
#define ISSPACE(c) isspace((int)(unsigned char)(c))
|
||||||
#define ISDIGIT(c) isdigit((int)(unsigned char)(c))
|
#define ISDIGIT(c) isdigit((int)(unsigned char)(c))
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
static const char *
|
static const char *
|
||||||
debug_ntoa(u32 address)
|
debug_ntoa(u32 address)
|
||||||
{
|
{
|
||||||
@ -401,7 +396,6 @@ debug_ntoa(u32 address)
|
|||||||
(int)(u8)((a )&0xff));
|
(int)(u8)((a )&0xff));
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
static evdns_debug_log_fn_type evdns_log_fn = NULL;
|
static evdns_debug_log_fn_type evdns_log_fn = NULL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user