3379. [bug] isc_interval_zero and isc_time_epoch should be

"const (type)* const". [RT #31069]
This commit is contained in:
Mark Andrews
2012-09-26 15:21:18 +10:00
parent 9c75dd9935
commit 7f1fab8b88
7 changed files with 21 additions and 18 deletions
+3
View File
@@ -1,3 +1,6 @@
3379. [bug] isc_interval_zero and isc_time_epoch should be
"const (type)* const". [RT #31069]
3376. [bug] Lack of EDNS support was being recorded without a
successful response. [RT #30811]
+4 -4
View File
@@ -113,8 +113,8 @@ typedef struct isc_timerevent {
isc_result_t
isc_timer_create(isc_timermgr_t *manager,
isc_timertype_t type,
isc_time_t *expires,
isc_interval_t *interval,
const isc_time_t *expires,
const isc_interval_t *interval,
isc_task_t *task,
isc_taskaction_t action,
const void *arg,
@@ -177,8 +177,8 @@ isc_timer_create(isc_timermgr_t *manager,
isc_result_t
isc_timer_reset(isc_timer_t *timer,
isc_timertype_t type,
isc_time_t *expires,
isc_interval_t *interval,
const isc_time_t *expires,
const isc_interval_t *interval,
isc_boolean_t purge);
/*%<
* Change the timer's type, expires, and interval values to the given
+2 -2
View File
@@ -301,7 +301,7 @@ destroy(isc_timer_t *timer) {
isc_result_t
isc_timer_create(isc_timermgr_t *manager, isc_timertype_t type,
isc_time_t *expires, isc_interval_t *interval,
const isc_time_t *expires, const isc_interval_t *interval,
isc_task_t *task, isc_taskaction_t action, const void *arg,
isc_timer_t **timerp)
{
@@ -419,7 +419,7 @@ isc_timer_create(isc_timermgr_t *manager, isc_timertype_t type,
isc_result_t
isc_timer_reset(isc_timer_t *timer, isc_timertype_t type,
isc_time_t *expires, isc_interval_t *interval,
const isc_time_t *expires, const isc_interval_t *interval,
isc_boolean_t purge)
{
isc_time_t now;
+2 -2
View File
@@ -41,7 +41,7 @@ struct isc_interval {
unsigned int nanoseconds;
};
extern isc_interval_t *isc_interval_zero;
extern const isc_interval_t * const isc_interval_zero;
ISC_LANG_BEGINDECLS
@@ -85,7 +85,7 @@ struct isc_time {
unsigned int nanoseconds;
};
extern isc_time_t *isc_time_epoch;
extern const isc_time_t * const isc_time_epoch;
void
isc_time_set(isc_time_t *t, unsigned int seconds, unsigned int nanoseconds);
+4 -4
View File
@@ -54,8 +54,8 @@
*** Intervals
***/
static isc_interval_t zero_interval = { 0, 0 };
isc_interval_t *isc_interval_zero = &zero_interval;
static const isc_interval_t zero_interval = { 0, 0 };
const isc_interval_t * const isc_interval_zero = &zero_interval;
#if ISC_FIX_TV_USEC
static inline void
@@ -110,8 +110,8 @@ isc_interval_iszero(const isc_interval_t *i) {
*** Absolute Times
***/
static isc_time_t epoch = { 0, 0 };
isc_time_t *isc_time_epoch = &epoch;
static const isc_time_t epoch = { 0, 0 };
const isc_time_t * const isc_time_epoch = &epoch;
void
isc_time_set(isc_time_t *t, unsigned int seconds, unsigned int nanoseconds) {
+2 -2
View File
@@ -39,7 +39,7 @@ struct isc_interval {
isc_int64_t interval;
};
LIBISC_EXTERNAL_DATA extern isc_interval_t *isc_interval_zero;
LIBISC_EXTERNAL_DATA extern const isc_interval_t * const isc_interval_zero;
ISC_LANG_BEGINDECLS
@@ -82,7 +82,7 @@ struct isc_time {
FILETIME absolute;
};
LIBISC_EXTERNAL_DATA extern isc_time_t *isc_time_epoch;
LIBISC_EXTERNAL_DATA extern const isc_time_t * const isc_time_epoch;
void
isc_time_set(isc_time_t *t, unsigned int seconds, unsigned int nanoseconds);
+4 -4
View File
@@ -47,15 +47,15 @@
*** Absolute Times
***/
static isc_time_t epoch = { { 0, 0 } };
LIBISC_EXTERNAL_DATA isc_time_t *isc_time_epoch = &epoch;
static const isc_time_t epoch = { { 0, 0 } };
LIBISC_EXTERNAL_DATA const isc_time_t * const isc_time_epoch = &epoch;
/***
*** Intervals
***/
static isc_interval_t zero_interval = { 0 };
LIBISC_EXTERNAL_DATA isc_interval_t *isc_interval_zero = &zero_interval;
static const isc_interval_t zero_interval = { 0 };
LIBISC_EXTERNAL_DATA const isc_interval_t * const isc_interval_zero = &zero_interval;
void
isc_interval_set(isc_interval_t *i, unsigned int seconds,