From 15ed732030e1390af5f576e2f7f74d1e50c54168 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Thu, 7 Feb 2013 13:34:14 +0000 Subject: [PATCH] lint clean (svn:NO TEST) git-svn-id: file:///svn/unbound/trunk@2836 be551aaa-1e26-0410-a405-d3ace91eadb9 --- libunbound/libworker.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libunbound/libworker.c b/libunbound/libworker.c index 25a8380d0..bd61cea15 100644 --- a/libunbound/libworker.c +++ b/libunbound/libworker.c @@ -422,7 +422,7 @@ fill_res(struct ub_result* res, struct ub_packed_rrset_key* answer, return 0; /* out of memory */ } if(rep->rrset_count != 0) - res->ttl = rep->ttl; + res->ttl = (int)rep->ttl; res->data = (char**)calloc(1, sizeof(char*)); res->len = (int*)calloc(1, sizeof(int)); return (res->data && res->len); @@ -446,18 +446,18 @@ fill_res(struct ub_result* res, struct ub_packed_rrset_key* answer, /* ttl for positive answers, from CNAME and answer RRs */ if(data->count != 0) { size_t j; - res->ttl = data->ttl; + res->ttl = (int)data->ttl; for(j=0; jan_numrrsets; j++) { struct packed_rrset_data* d = (struct packed_rrset_data*)rep->rrsets[j]-> entry.data; if((int)d->ttl < res->ttl) - res->ttl = d->ttl; + res->ttl = (int)d->ttl; } } /* ttl for negative answers */ if(data->count == 0 && rep->rrset_count != 0) - res->ttl = rep->ttl; + res->ttl = (int)rep->ttl; res->data[data->count] = NULL; res->len[data->count] = 0; return 1;