]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence compiler warnings; style
authorMark Andrews <marka@isc.org>
Tue, 29 Apr 2014 11:11:14 +0000 (21:11 +1000)
committerMark Andrews <marka@isc.org>
Tue, 29 Apr 2014 11:11:14 +0000 (21:11 +1000)
bin/tests/dst/t_dst.c

index 766b972616730e8b6dde852e542dd6f330b26c1e..0c3b93e28e15f7cb519f0480f96c85a1bf61fb6a 100644 (file)
@@ -655,13 +655,12 @@ sig_fromfile(char *path, isc_buffer_t *iscbuf) {
 
        len = (size_t)size;
        p = buf;
-       while (len) {
+       while (len != 0U) {
                isc_result = isc_stdio_read(p, 1, len, fp, &rval);
                if (isc_result == ISC_R_SUCCESS) {
                        len -= rval;
                        p += rval;
-               }
-               else {
+               } else {
                        t_info("read failed %d, result: %s\n",
                               (int)rval, isc_result_totext(isc_result));
                        (void) free(buf);
@@ -673,12 +672,12 @@ sig_fromfile(char *path, isc_buffer_t *iscbuf) {
 
        p = buf;
        len = size;
-       while (len > 0) {
+       while (len > 0U) {
                if ((*p == '\r') || (*p == '\n')) {
                        ++p;
                        --len;
                        continue;
-               } else if (len < 2)
+               } else if (len < 2U)
                        return (1);
                if (('0' <= *p) && (*p <= '9'))
                        val = *p - '0';