mirror of
https://github.com/lxsang/ant-http
synced 2024-12-25 16:28:21 +01:00
remove debug compiling option
This commit is contained in:
parent
0daef95c25
commit
c7e9d2a579
14
configure.ac
14
configure.ac
@ -70,13 +70,13 @@ AC_DEFINE([_GNU_SOURCE], [1],[Use GNU source])
|
||||
# AC_CANONICAL_HOST is needed to access the 'host_os' variable
|
||||
|
||||
# debug option
|
||||
AC_ARG_ENABLE([debug],
|
||||
[ --enable-debug Turn on debugging],
|
||||
[case "${enableval}" in
|
||||
yes) AC_DEFINE([DEBUG], [1],[Enable debug]) ;;
|
||||
no) ;;
|
||||
*) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
|
||||
esac],[debug=false])
|
||||
#AC_ARG_ENABLE([debug],
|
||||
# [ --enable-debug Turn on debugging],
|
||||
# [case "${enableval}" in
|
||||
# yes) AC_DEFINE([DEBUG], [1],[Enable debug]) ;;
|
||||
# no) ;;
|
||||
# *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
|
||||
# esac],[debug=false])
|
||||
|
||||
AC_CANONICAL_HOST
|
||||
build_linux=no
|
||||
|
1
httpd.c
1
httpd.c
@ -309,7 +309,6 @@ void antd_scheduler_destroy_data(void *data)
|
||||
int antd_scheduler_validate_data(antd_task_t *task)
|
||||
{
|
||||
config_t *conf = config();
|
||||
LOG("Use server configured scheduler timeout %d", conf->scheduler_timeout);
|
||||
return !(difftime(time(NULL), task->access_time) > conf->scheduler_timeout);
|
||||
}
|
||||
|
||||
|
16
lib/utils.c
16
lib/utils.c
@ -48,22 +48,6 @@ THE SOFTWARE.
|
||||
// #include <time.h>
|
||||
|
||||
|
||||
|
||||
void error_log(const char* fmt, ...)
|
||||
{
|
||||
UNUSED(fmt);
|
||||
return;
|
||||
}
|
||||
#ifdef DEBUG
|
||||
void server_log(const char* fmt, ...)
|
||||
{
|
||||
UNUSED(fmt);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Trim a string by a character on both ends
|
||||
* @param str The target string
|
||||
|
Loading…
Reference in New Issue
Block a user