From: Martin Willi Date: Thu, 8 May 2014 11:24:03 +0000 (+0200) Subject: unbound: Explicitly cast from ldns RR type/class to our types X-Git-Tag: 5.2.0dr5~39^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0746e38c51dee9eebed9d501650f75079188c53e;p=thirdparty%2Fstrongswan.git unbound: Explicitly cast from ldns RR type/class to our types These definitions are directly derived from the RFC, so it should be safe to cast them. clang complains about the different types, so cast them explicitly. --- diff --git a/src/libstrongswan/plugins/unbound/unbound_rr.c b/src/libstrongswan/plugins/unbound/unbound_rr.c index 97c3b19330..fc69eed00f 100644 --- a/src/libstrongswan/plugins/unbound/unbound_rr.c +++ b/src/libstrongswan/plugins/unbound/unbound_rr.c @@ -135,8 +135,8 @@ unbound_rr_t *unbound_rr_create_frm_ldns_rr(ldns_rr *rr) return NULL; } - this->type = ldns_rr_get_type(rr); - this->class = ldns_rr_get_class(rr); + this->type = (rr_type_t)ldns_rr_get_type(rr); + this->class = (rr_class_t)ldns_rr_get_class(rr); this->ttl = ldns_rr_ttl(rr); for(i = 0; i < ldns_rr_rd_count(rr); i++) {