From: Miek Gieben Date: Tue, 5 Apr 2005 14:05:40 +0000 (+0000) Subject: removed double FREEs, lint checks X-Git-Tag: release-0.50~169 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c35fa326540aa6b2525bdbc96a735f6d74a5cb1;p=thirdparty%2Fldns.git removed double FREEs, lint checks --- diff --git a/parse.c b/parse.c index 77b2057c..6bb89251 100644 --- a/parse.c +++ b/parse.c @@ -129,7 +129,7 @@ tokenread: return 0; } else { *t = '\0'; - return i; + return (ssize_t)i; } } @@ -241,6 +241,6 @@ tokenread: return 0; } else { *t = '\0'; - return i; + return (ssize_t)i; } } diff --git a/rr.c b/rr.c index ffba340a..53853006 100644 --- a/rr.c +++ b/rr.c @@ -164,11 +164,11 @@ ldns_rr_new_frm_str(const char *str) strlen(str_normalized)); /* split the rr in its parts */ - ldns_bget_token(rr_buf, owner, "\t \0", MAX_DOMAINLEN); - ldns_bget_token(rr_buf, ttl, "\t \0", 21); - ldns_bget_token(rr_buf, clas, "\t \0", 11); - ldns_bget_token(rr_buf, type, "\t \0", 10); - ldns_bget_token(rr_buf, rdata, "\0", MAX_PACKETLEN); + (void)ldns_bget_token(rr_buf, owner, "\t \0", MAX_DOMAINLEN); + (void)ldns_bget_token(rr_buf, ttl, "\t \0", 21); + (void)ldns_bget_token(rr_buf, clas, "\t \0", 11); + (void)ldns_bget_token(rr_buf, type, "\t \0", 10); + (void)ldns_bget_token(rr_buf, rdata, "\0", MAX_PACKETLEN); FREE(str_normalized); @@ -223,11 +223,6 @@ ldns_rr_new_frm_str(const char *str) ldns_rr_push_rdf(new, r); - FREE(owner); - FREE(ttl); - FREE(clas); - FREE(type); - FREE(rdata); return new; }