Skip to content
GitLab
Projects
Groups
Snippets
/
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
6ee1fca9
Commit
6ee1fca9
authored
Aug 20, 1999
by
Bob Halley
Browse files
Add some comments about the type of various offsets.
#include <isc/net.h> to get the prototype for ntohl().
parent
271fa930
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/journal.c
View file @
6ee1fca9
...
...
@@ -30,6 +30,7 @@
#include
<isc/assertions.h>
#include
<isc/error.h>
#include
<isc/mem.h>
#include
<isc/net.h>
#include
<isc/result.h>
#include
<isc/buffer.h>
...
...
@@ -747,6 +748,11 @@ typedef enum {
JOURNAL_STATE_TRANSACTION
,
}
journal_state_t
;
/*
* XXXRTH We use 'off_t' in the following structure. If we continue to
* use stdio instead of creating an ISC file module, we'll convert
* 'off_t' to 'long'.
*/
struct
dns_journal
{
unsigned
int
magic
;
/* JOUR */
...
...
@@ -1857,6 +1863,11 @@ read_one_rr(dns_journal_t *j) {
journal_rrhdr_t
rrhdr
;
isc_region_t
r
;
/*
* XXXRTH Need to resolve the comparison between int and unsigned
* int here, but we can defer this until we decide what type
* we want j->offset to be.
*/
INSIST
(
j
->
offset
<=
j
->
it
.
epos
.
offset
);
if
(
j
->
offset
==
j
->
it
.
epos
.
offset
)
return
(
DNS_R_NOMORE
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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