From: Willem Toorop Date: Fri, 27 Sep 2013 09:39:23 +0000 (+0200) Subject: lint X-Git-Tag: release-1.6.17rc1~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34bc110c204ddee11434d9b24b143ad7b4c0474d;p=thirdparty%2Fldns.git lint --- diff --git a/host2str.c b/host2str.c index 264aa11b..28b257e6 100644 --- a/host2str.c +++ b/host2str.c @@ -1262,7 +1262,7 @@ ldns_rdf2buffer_str_hip(ldns_buffer *output, const ldns_rdf *rdf) ldns_buffer_printf(output, "%02x", (int) *data); } - ldns_buffer_write_u8(output, ' '); + ldns_buffer_write_u8(output, (uint8_t) ' '); if (ldns_buffer_reserve(output, ldns_b64_ntop_calculate_size(pk_size))) { diff --git a/str2host.c b/str2host.c index d4c33616..26cef3d0 100644 --- a/str2host.c +++ b/str2host.c @@ -1544,7 +1544,7 @@ ldns_str2rdf_hip(ldns_rdf **rd, const char *str) LDNS_FREE(data); return LDNS_STATUS_INVALID_HEX; } - *dp = hi << 4 | lo; + *dp = (uint8_t) hi << 4 | lo; } if ((written = ldns_b64_pton(pk, dp, pk_wire_size)) <= 0) {