From: Jelte Jansen Date: Wed, 5 Jul 2006 09:28:14 +0000 (+0000) Subject: cast X-Git-Tag: release-1.1.0~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=134f5a10fc130b88f1101393b4097edece714992;p=thirdparty%2Fldns.git cast --- diff --git a/rr.c b/rr.c index c9261f36..962f72cd 100644 --- a/rr.c +++ b/rr.c @@ -171,7 +171,7 @@ ldns_rr_new_frm_str(ldns_rr **newrr, const char *str, uint16_t default_ttl, ldns ldns_rr_free(new); return LDNS_STATUS_SYNTAX_TTL_ERR; } - ttl_val = strtol(ttl, NULL, 10); + ttl_val = (uint32_t) strtol(ttl, NULL, 10); if (strlen(ttl) > 0 && !isdigit(ttl[0])) { /* ah, it's not there or something */