From deb1edb6350a3b2b30f811098ddb13314c008bd2 Mon Sep 17 00:00:00 2001 From: ian Date: Mon, 3 Apr 2006 22:49:32 +0000 Subject: [PATCH] + Fixes from or suggested by Bernd Eckenfels, the Debian maintainer: @@ -3,10 +3,12 @@ * Include reference to Peter Simons's Haskell bindings in README.html. - Fixes from Bernd Eckenfels, the Debian maintainer: + Fixes from or suggested by Bernd Eckenfels, the Debian maintainer: * Correct type of various printf arguments: ptrdiff_t != int. * Do not print size of leaked blocks of memory (this causes - a spurious regression test failure). + a spurious regression test failure on some platforms) + * Provide adns_if_none and adns_qf_none (which will help with compilers + which complain about plain `0' being passed where an enum is wanted). -- --- changelog | 6 ++++-- src/adns.h | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/changelog b/changelog index b1edb55..7dc9915 100644 --- a/changelog +++ b/changelog @@ -3,10 +3,12 @@ adns (1.1.999.0.2); urgency=medium * Include reference to Peter Simons's Haskell bindings in README.html. - Fixes from Bernd Eckenfels, the Debian maintainer: + Fixes from or suggested by Bernd Eckenfels, the Debian maintainer: * Correct type of various printf arguments: ptrdiff_t != int. * Do not print size of leaked blocks of memory (this causes - a spurious regression test failure). + a spurious regression test failure on some platforms) + * Provide adns_if_none and adns_qf_none (which will help with compilers + which complain about plain `0' being passed where an enum is wanted). -- diff --git a/src/adns.h b/src/adns.h index f262d47..1a7d1dc 100644 --- a/src/adns.h +++ b/src/adns.h @@ -75,7 +75,8 @@ extern "C" { /* I really dislike this - iwj. */ typedef struct adns__state *adns_state; typedef struct adns__query *adns_query; -typedef enum { +typedef enum { /* In general, or together the desired flags: */ + adns_if_none= 0x0000,/* no flags. nicer than 0 for some compilers */ adns_if_noenv= 0x0001,/* do not look at environment */ adns_if_noerrprint= 0x0002,/* never print to stderr (_debug overrides) */ adns_if_noserverwarn=0x0004,/* do not warn to stderr about duff servers etc */ @@ -88,7 +89,8 @@ typedef enum { adns_if_checkc_freq= 0x0300 /* consistency checks very frequently (slow!) */ } adns_initflags; -typedef enum { +typedef enum { /* In general, or together the desired flags: */ + adns_qf_none= 0x00000000,/* no flags */ adns_qf_search= 0x00000001,/* use the searchlist */ adns_qf_usevc= 0x00000002,/* use a virtual circuit (TCP conn) */ adns_qf_owner= 0x00000004,/* fill in the owner field in the answer */ -- 2.11.0