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
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
Show whitespace changes
Inline
Side-by-side
lib/dns/journal.c
View file @
6ee1fca9
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
#include <isc/assertions.h>
#include <isc/assertions.h>
#include <isc/error.h>
#include <isc/error.h>
#include <isc/mem.h>
#include <isc/mem.h>
#include <isc/net.h>
#include <isc/result.h>
#include <isc/result.h>
#include <isc/buffer.h>
#include <isc/buffer.h>
...
@@ -747,6 +748,11 @@ typedef enum {
...
@@ -747,6 +748,11 @@ typedef enum {
JOURNAL_STATE_TRANSACTION
,
JOURNAL_STATE_TRANSACTION
,
}
journal_state_t
;
}
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
{
struct
dns_journal
{
unsigned
int
magic
;
/* JOUR */
unsigned
int
magic
;
/* JOUR */
...
@@ -1857,6 +1863,11 @@ read_one_rr(dns_journal_t *j) {
...
@@ -1857,6 +1863,11 @@ read_one_rr(dns_journal_t *j) {
journal_rrhdr_t
rrhdr
;
journal_rrhdr_t
rrhdr
;
isc_region_t
r
;
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
);
INSIST
(
j
->
offset
<=
j
->
it
.
epos
.
offset
);
if
(
j
->
offset
==
j
->
it
.
epos
.
offset
)
if
(
j
->
offset
==
j
->
it
.
epos
.
offset
)
return
(
DNS_R_NOMORE
);
return
(
DNS_R_NOMORE
);
...
...
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