diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-04-04 18:13:05 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-04-04 18:13:05 +0300 |
commit | 0665896a5593fb41c92cbf164182a058ee40518c (patch) | |
tree | d657fac84d35aa3f605d25dc8e0a3c165db93b30 /src/nxt_sockaddr.c | |
parent | 43ba7aad6cadfab2eb45f09e894dec072c93e6cd (diff) | |
download | unit-0665896a5593fb41c92cbf164182a058ee40518c.tar.gz unit-0665896a5593fb41c92cbf164182a058ee40518c.tar.bz2 |
Style: capitalized letters in hexadecimal literals.
Diffstat (limited to 'src/nxt_sockaddr.c')
-rw-r--r-- | src/nxt_sockaddr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nxt_sockaddr.c b/src/nxt_sockaddr.c index cd8a2cd2..0df40a1f 100644 --- a/src/nxt_sockaddr.c +++ b/src/nxt_sockaddr.c @@ -557,7 +557,7 @@ nxt_inet6_ntop(u_char *addr, u_char *buf, u_char *end) if (zero_start == 0) { /* IPv4-mapped address */ - if ((zero_groups == 5 && addr[10] == 0xff && addr[11] == 0xff) + if ((zero_groups == 5 && addr[10] == 0xFF && addr[11] == 0xFF) /* IPv4-compatible address */ || (zero_groups == 6) /* not IPv6 loopback address */ @@ -1206,7 +1206,7 @@ nxt_inet6_addr(struct in6_addr *in6_addr, u_char *buf, size_t length) ipv4 = buf; *addr++ = (u_char) (group >> 8); - *addr++ = (u_char) (group & 0xff); + *addr++ = (u_char) (group & 0xFF); groups_left--; if (groups_left != 0) { @@ -1239,8 +1239,8 @@ nxt_inet6_addr(struct in6_addr *in6_addr, u_char *buf, size_t length) group = ntohl(group); - *addr++ = (u_char) ((group >> 24) & 0xff); - *addr++ = (u_char) ((group >> 16) & 0xff); + *addr++ = (u_char) ((group >> 24) & 0xFF); + *addr++ = (u_char) ((group >> 16) & 0xFF); groups_left--; /* the low 16-bit are copied below */ @@ -1280,7 +1280,7 @@ nxt_inet6_addr(struct in6_addr *in6_addr, u_char *buf, size_t length) } *addr++ = (u_char) (group >> 8); - *addr++ = (u_char) (group & 0xff); + *addr++ = (u_char) (group & 0xFF); groups_left--; if (groups_left != 0) { |