* grub-core/disk/ahci.c: Add needed explicit cast.
* grub-core/lib/backtrace.c: Likewise. * grub-core/net/ip.c: Likewise. * grub-core/net/tcp.c: Likewise. * grub-core/net/udp.c: Likewise.
This commit is contained in:
parent
3c601f8c81
commit
54ea2f4401
6 changed files with 15 additions and 7 deletions
|
@ -403,7 +403,7 @@ grub_net_recv_ip4_packets (struct grub_net_buff *nb,
|
|||
* sizeof (grub_uint32_t)))
|
||||
{
|
||||
grub_dprintf ("net", "IP packet too short: %" PRIdGRUB_SSIZE "\n",
|
||||
(nb->tail - nb->data));
|
||||
(grub_ssize_t) (nb->tail - nb->data));
|
||||
grub_netbuff_free (nb);
|
||||
return GRUB_ERR_NONE;
|
||||
}
|
||||
|
@ -654,7 +654,7 @@ grub_net_recv_ip6_packets (struct grub_net_buff *nb,
|
|||
if (nb->tail - nb->data < (grub_ssize_t) sizeof (*iph))
|
||||
{
|
||||
grub_dprintf ("net", "IP packet too short: %" PRIdGRUB_SSIZE "\n",
|
||||
nb->tail - nb->data);
|
||||
(grub_ssize_t) (nb->tail - nb->data));
|
||||
grub_netbuff_free (nb);
|
||||
return GRUB_ERR_NONE;
|
||||
}
|
||||
|
|
|
@ -766,7 +766,7 @@ grub_net_recv_tcp_packet (struct grub_net_buff *nb,
|
|||
>> 12) * sizeof (grub_uint32_t)))
|
||||
{
|
||||
grub_dprintf ("net", "TCP packet too short: %" PRIuGRUB_SIZE "\n",
|
||||
nb->tail - nb->data);
|
||||
(grub_size_t) (nb->tail - nb->data));
|
||||
grub_netbuff_free (nb);
|
||||
return GRUB_ERR_NONE;
|
||||
}
|
||||
|
|
|
@ -155,7 +155,7 @@ grub_net_recv_udp_packet (struct grub_net_buff *nb,
|
|||
if (nb->tail - nb->data < (grub_ssize_t) sizeof (*udph))
|
||||
{
|
||||
grub_dprintf ("net", "UDP packet too short: %" PRIuGRUB_SIZE "\n",
|
||||
nb->tail - nb->data);
|
||||
(grub_size_t) (nb->tail - nb->data));
|
||||
grub_netbuff_free (nb);
|
||||
return GRUB_ERR_NONE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue