Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
6f5fe11f
Commit
6f5fe11f
authored
Nov 09, 2018
by
Ondřej Surý
Browse files
isc_stdtime_t is always 32-bit now, so remove the always true macro STDTIME_ON_32BITS
parent
c355e1f3
Pipeline
#6326
passed with stages
in 8 minutes and 47 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/masterdump.c
View file @
6f5fe11f
...
...
@@ -1591,24 +1591,7 @@ writeheader(dns_dumpctx_t *dctx) {
r
.
base
=
(
unsigned
char
*
)
&
rawheader
;
r
.
length
=
sizeof
(
rawheader
);
isc_buffer_region
(
&
buffer
,
&
r
);
#if !defined(STDTIME_ON_32BITS) || (STDTIME_ON_32BITS + 0) != 1
/*
* We assume isc_stdtime_t is a 32-bit integer,
* which should be the case on most platforms.
* If it turns out to be uncommon, we'll need
* to bump the version number and revise the
* header format.
*/
isc_log_write
(
dns_lctx
,
ISC_LOGCATEGORY_GENERAL
,
DNS_LOGMODULE_MASTERDUMP
,
ISC_LOG_INFO
,
"dumping master file in raw "
"format: stdtime is not 32bits"
);
now32
=
0
;
#else
now32
=
dctx
->
now
;
#endif
rawversion
=
1
;
if
((
dctx
->
header
.
flags
&
DNS_MASTERRAW_COMPAT
)
!=
0
)
rawversion
=
0
;
...
...
lib/dns/zone.c
View file @
6f5fe11f
...
...
@@ -6346,17 +6346,14 @@ del_sigs(dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name,
if
(
result
==
ISC_R_NOMORE
)
result
=
ISC_R_SUCCESS
;
if
(
timewarn
>
0
)
{
#if defined(STDTIME_ON_32BITS)
isc_stdtime_t
stdwarn
=
(
isc_stdtime_t
)
timewarn
;
if
(
timewarn
==
stdwarn
)
#endif
if
(
timewarn
==
stdwarn
)
{
set_key_expiry_warning
(
zone
,
(
isc_stdtime_t
)
timewarn
,
now
);
#if defined(STDTIME_ON_32BITS)
else
}
else
{
dns_zone_log
(
zone
,
ISC_LOG_ERROR
,
"key expiry warning time out of range"
);
#endif
}
}
failure:
if
(
node
!=
NULL
)
...
...
lib/isc/unix/include/isc/stdtime.h
View file @
6f5fe11f
...
...
@@ -25,16 +25,6 @@
*/
typedef
uint32_t
isc_stdtime_t
;
/* but this flag helps... */
#define STDTIME_ON_32BITS 1
/*
* isc_stdtime32_t is a 32-bit version of isc_stdtime_t. A variable of this
* type should only be used as an opaque integer (e.g.,) to compare two
* time values.
*/
typedef
uint32_t
isc_stdtime32_t
;
ISC_LANG_BEGINDECLS
/* */
void
...
...
lib/isc/win32/include/isc/stdtime.h
View file @
6f5fe11f
...
...
@@ -23,16 +23,6 @@
*/
typedef
uint32_t
isc_stdtime_t
;
/* but this flag helps... */
#define STDTIME_ON_32BITS 1
/*
* isc_stdtime32_t is a 32-bit version of isc_stdtime_t. A variable of this
* type should only be used as an opaque integer (e.g.,) to compare two
* time values.
*/
typedef
uint32_t
isc_stdtime32_t
;
ISC_LANG_BEGINDECLS
void
...
...
Ondřej Surý
@ondrej
mentioned in commit
956d1bda
·
Nov 08, 2018
mentioned in commit
956d1bda
mentioned in commit 956d1bda025e94b3563546c36e28b5e2653fb49f
Toggle commit list
Ondřej Surý
@ondrej
mentioned in commit
c56e9408
·
Nov 08, 2018
mentioned in commit
c56e9408
mentioned in commit c56e94088058f257df7dd62ae8eb7fa44aceb02b
Toggle commit list
Ondřej Surý
@ondrej
mentioned in commit
ba263b5b
·
Nov 08, 2018
mentioned in commit
ba263b5b
mentioned in commit ba263b5b7e305e485e32421f332139ec3f23fc9a
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment