diff --git a/src/context.c b/src/context.c index 987d5ea2..fd93c68b 100644 --- a/src/context.c +++ b/src/context.c @@ -819,10 +819,11 @@ tls_only_is_in_transports_list(getdns_context *context) { static int net_req_query_id_cmp(const void *id1, const void *id2) { - return (intptr_t)id1 - (intptr_t)id2; -} -/* -{ + /* + * old code was: + * return (intptr_t)id1 - (intptr_t)id2; + *but this is incorrect on 64 bit architectures. + */ int ret = 0; if (id1 != id2) @@ -832,7 +833,7 @@ net_req_query_id_cmp(const void *id1, const void *id2) return ret; } -*/ + static getdns_tsig_info const tsig_info[] = { { GETDNS_NO_TSIG, NULL, 0, NULL, 0, 0, 0 }