chiark
/
gitweb
/
~mdw
/
adns
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
+ * Declare flags parameters as ints not enums because C++ is crap.
[adns]
/
src
/
query.c
diff --git
a/src/query.c
b/src/query.c
index 8d9994b748a8f5ca977ad0768b17028d1a5aa58f..c092a30c25a79a94837510691e5c5a8747767b46 100644
(file)
--- a/
src/query.c
+++ b/
src/query.c
@@
-195,7
+195,7
@@
static int save_owner(adns_query qu, const char *owner, int ol) {
int adns_submit(adns_state ads,
const char *owner,
adns_rrtype type,
int adns_submit(adns_state ads,
const char *owner,
adns_rrtype type,
-
adns_queryflags
flags,
+
int
flags,
void *context,
adns_query *query_r) {
int r, ol, ndots;
void *context,
adns_query *query_r) {
int r, ol, ndots;
@@
-261,7
+261,7
@@
int adns_submit(adns_state ads,
int adns_submit_reverse(adns_state ads,
const struct sockaddr *addr,
adns_rrtype type,
int adns_submit_reverse(adns_state ads,
const struct sockaddr *addr,
adns_rrtype type,
-
adns_queryflags
flags,
+
int
flags,
void *context,
adns_query *query_r) {
const unsigned char *iaddr;
void *context,
adns_query *query_r) {
const unsigned char *iaddr;
@@
-282,7
+282,7
@@
int adns_submit_reverse(adns_state ads,
int adns_synchronous(adns_state ads,
const char *owner,
adns_rrtype type,
int adns_synchronous(adns_state ads,
const char *owner,
adns_rrtype type,
-
adns_queryflags
flags,
+
int
flags,
adns_answer **answer_r) {
adns_query qu;
int r;
adns_answer **answer_r) {
adns_query qu;
int r;