From 514eee844fa424ef60e2b3217155adebe652acf2 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sun, 2 Nov 2014 11:41:00 +0000 Subject: [PATCH] defined QSE_HTTPD_TIMER_INVALID_INDEX --- qse/include/qse/http/httpd.h | 2 ++ qse/lib/http/httpd.c | 1 - qse/lib/http/httpd.h | 12 ++++++++---- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/qse/include/qse/http/httpd.h b/qse/include/qse/http/httpd.h index 4e3a0bac..ab756ad9 100644 --- a/qse/include/qse/http/httpd.h +++ b/qse/include/qse/http/httpd.h @@ -555,6 +555,8 @@ struct qse_httpd_timer_event_t qse_httpd_timer_updater_t updater; }; +#define QSE_HTTPD_TIMER_INVALID_INDEX QSE_TMR_INVALID_INDEX + /* -------------------------------------------------------------------------- */ typedef struct qse_httpd_task_t qse_httpd_task_t; diff --git a/qse/lib/http/httpd.c b/qse/lib/http/httpd.c index 4508a7ae..76e741a7 100644 --- a/qse/lib/http/httpd.c +++ b/qse/lib/http/httpd.c @@ -2027,7 +2027,6 @@ int qse_httpd_inserttimerevent (qse_httpd_t* httpd, const qse_httpd_timer_event_ qse_tmr_index_t timer_index; QSE_MEMSET (&timer_event, 0, QSE_SIZEOF(timer_event)); - timer_event.ctx = event->ctx; timer_event.ctx2 = event->updater; timer_event.ctx3 = event->handler; diff --git a/qse/lib/http/httpd.h b/qse/lib/http/httpd.h index a10ac4ab..3fe974ca 100644 --- a/qse/lib/http/httpd.h +++ b/qse/lib/http/httpd.h @@ -25,9 +25,14 @@ #include -#define QSE_HTTPD_DEBUG 1 -/*#undef QSE_HTTPD_DEBUG*/ - +#if defined(NDEBUG) + /* To include debugging messages while NDEBUG is set, + * you can define QSE_HTTPD_DEBUG externally in CFLAGS or something. + */ +#else + /* debugging mode */ +# define QSE_HTTPD_DEBUG 1 +#endif #if defined(QSE_HTTPD_DEBUG) # include @@ -47,7 +52,6 @@ # define HTTPD_DBGOUT5(fmt,a1,a2,a3,a4,a5) #endif - #define QSE_HTTPD_DEFAULT_PORT 80 #define QSE_HTTPD_DEFAULT_SECURE_PORT 443