about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-09-01 08:08:59 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-04-17 16:12:41 -0300
commitf9d1356c695ae82b1209233f119d7b03da528e66 (patch)
tree168816305481670006aa6c951693e5446ea6ac09
parent0b0c655d880f0b541dd5cb3d08248a6832af7f6a (diff)
downloadglibc-f9d1356c695ae82b1209233f119d7b03da528e66.tar.gz
glibc-f9d1356c695ae82b1209233f119d7b03da528e66.tar.xz
glibc-f9d1356c695ae82b1209233f119d7b03da528e66.zip
resolve: Fix implicit conversion on tst-resolv-invalid-cname
  tst-resolv-invalid-cname.c:313:17: error: implicit conversion from 'int'
  to 'char' changes value from 192 to -64 [-Werror,-Wconstant-conversion]
        addr[0] = 192;
                ~ ^~~
  tst-resolv-invalid-cname.c:314:17: error: implicit conversion from 'int'
  to 'char' changes value from 168 to -88 [-Werror,-Wconstant-conversion]
        addr[1] = 168;
                ~ ^~~
-rw-r--r--resolv/tst-resolv-invalid-cname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/resolv/tst-resolv-invalid-cname.c b/resolv/tst-resolv-invalid-cname.c
index 69f1c63be1..7675a45950 100644
--- a/resolv/tst-resolv-invalid-cname.c
+++ b/resolv/tst-resolv-invalid-cname.c
@@ -310,8 +310,8 @@ check_reverse (int af, int bits, int count)
   socklen_t addrlen;
   if (af == AF_INET)
     {
-      addr[0] = 192;
-      addr[1] = 168;
+      addr[0] = 0xc0;
+      addr[1] = 0xa8;
       addr[2] = count;
       addr[3] = bits;
       addrlen = 4;