]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence compiler warning [RT #46471]
authorMark Andrews <marka@isc.org>
Thu, 23 Nov 2017 06:01:40 +0000 (17:01 +1100)
committerMark Andrews <marka@isc.org>
Thu, 23 Nov 2017 06:02:31 +0000 (17:02 +1100)
lib/isc/include/isc/buffer.h

index fd9e4702670d152f83159e34929a7dc5470f7013..7f97ee20351e19b6d1bbc9e0c398b9add25c0c9e 100644 (file)
@@ -893,13 +893,13 @@ ISC_LANG_ENDDECLS
        do { \
                unsigned int _length; \
                unsigned char *_cp; \
-               _length = strlen(_source); \
+               _length = (unsigned int)strlen(_source); \
                if (ISC_UNLIKELY((_b)->autore)) { \
                        isc_buffer_t *_tmp = _b; \
                        ISC_REQUIRE(isc_buffer_reserve(&_tmp, _length) \
                                == ISC_R_SUCCESS); \
                } \
-               ISC_REQUIRE(isc_buffer_availablelength(_b) >= (unsigned int) _length); \
+               ISC_REQUIRE(isc_buffer_availablelength(_b) >= _length); \
                _cp = isc_buffer_used(_b); \
                memmove(_cp, (_source), _length); \
                (_b)->used += (_length); \