all: Add 'U' suffix when using unsigned variables
Add a 'U' suffix to values when computing and comparing against unsigned variables. Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
This commit is contained in:
parent
caebf204c6
commit
24d71431e9
559 changed files with 2331 additions and 2328 deletions
|
@ -262,7 +262,7 @@ static inline bool ethernet_ipv4_dst_is_broadcast_or_mcast(struct net_pkt *pkt)
|
|||
{
|
||||
if (net_ipv4_is_addr_bcast(net_pkt_iface(pkt),
|
||||
&NET_IPV4_HDR(pkt)->dst) ||
|
||||
NET_IPV4_HDR(pkt)->dst.s4_addr[0] == 224) {
|
||||
NET_IPV4_HDR(pkt)->dst.s4_addr[0] == 224U) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -273,7 +273,7 @@ static bool ethernet_fill_in_dst_on_ipv4_mcast(struct net_pkt *pkt,
|
|||
struct net_eth_addr *dst)
|
||||
{
|
||||
if (net_pkt_family(pkt) == AF_INET &&
|
||||
NET_IPV4_HDR(pkt)->dst.s4_addr[0] == 224) {
|
||||
NET_IPV4_HDR(pkt)->dst.s4_addr[0] == 224U) {
|
||||
/* Multicast address */
|
||||
dst->addr[0] = 0x01;
|
||||
dst->addr[1] = 0x00;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue