chiark
/
gitweb
/
~ianmdlvl
/
adns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Consistency checks: Distinguish "entry" from exit
[adns.git]
/
src
/
setup.c
diff --git
a/src/setup.c
b/src/setup.c
index f1c7dfec3f9247f6625ee2a1a08d225492438e30..26338e8b392494d3a4a5acb9c6987e11d68e3ef6 100644
(file)
--- a/
src/setup.c
+++ b/
src/setup.c
@@
-742,7
+742,7
@@
static int init_files(adns_state *ads_r, adns_initflags flags,
r= init_finish(ads);
if (r) return r;
r= init_finish(ads);
if (r) return r;
- adns__consistency(ads,0,cc_e
ntex
);
+ adns__consistency(ads,0,cc_e
xit
);
*ads_r= ads;
return 0;
}
*ads_r= ads;
return 0;
}
@@
-768,7
+768,7
@@
static int init_strcfg(adns_state *ads_r, adns_initflags flags,
}
r= init_finish(ads); if (r) return r;
}
r= init_finish(ads); if (r) return r;
- adns__consistency(ads,0,cc_e
ntex
);
+ adns__consistency(ads,0,cc_e
xit
);
*ads_r= ads;
return 0;
}
*ads_r= ads;
return 0;
}
@@
-794,7
+794,7
@@
int adns_init_logfn(adns_state *newstate_r, adns_initflags flags,
void adns_finish(adns_state ads) {
int i;
void adns_finish(adns_state ads) {
int i;
- adns__consistency(ads,0,cc_ente
x
);
+ adns__consistency(ads,0,cc_ente
r
);
for (;;) {
if (ads->udpw.head) adns__cancel(ads->udpw.head);
else if (ads->tcpw.head) adns__cancel(ads->tcpw.head);
for (;;) {
if (ads->udpw.head) adns__cancel(ads->udpw.head);
else if (ads->tcpw.head) adns__cancel(ads->tcpw.head);
@@
-812,7
+812,7
@@
void adns_finish(adns_state ads) {
}
void adns_forallqueries_begin(adns_state ads) {
}
void adns_forallqueries_begin(adns_state ads) {
- adns__consistency(ads,0,cc_ente
x
);
+ adns__consistency(ads,0,cc_ente
r
);
ads->forallnext=
ads->udpw.head ? ads->udpw.head :
ads->tcpw.head ? ads->tcpw.head :
ads->forallnext=
ads->udpw.head ? ads->udpw.head :
ads->tcpw.head ? ads->tcpw.head :
@@
-823,7
+823,7
@@
void adns_forallqueries_begin(adns_state ads) {
adns_query adns_forallqueries_next(adns_state ads, void **context_r) {
adns_query qu, nqu;
adns_query adns_forallqueries_next(adns_state ads, void **context_r) {
adns_query qu, nqu;
- adns__consistency(ads,0,cc_ente
x
);
+ adns__consistency(ads,0,cc_ente
r
);
nqu= ads->forallnext;
for (;;) {
qu= nqu;
nqu= ads->forallnext;
for (;;) {
qu= nqu;