net: trivial grub_cpu_to_XX_compile_time cleanup

This commit is contained in:
Andrei Borzenkov 2015-03-27 18:58:57 +03:00
parent c9ee9bedef
commit ebd92af8c3
2 changed files with 3 additions and 3 deletions

View file

@ -80,7 +80,7 @@ grub_net_arp_send_request (struct grub_net_network_level_interface *inf,
arp_packet = (struct arppkt *) nb.data;
arp_packet->hrd = grub_cpu_to_be16_compile_time (GRUB_NET_ARPHRD_ETHERNET);
arp_packet->hln = 6;
arp_packet->pro = grub_cpu_to_be16 (GRUB_NET_ETHERTYPE_IP);
arp_packet->pro = grub_cpu_to_be16_compile_time (GRUB_NET_ETHERTYPE_IP);
arp_packet->pln = 4;
arp_packet->op = grub_cpu_to_be16_compile_time (ARP_REQUEST);
/* Sender hardware address. */

View file

@ -552,8 +552,8 @@ grub_net_icmp6_send_router_solicit (struct grub_net_network_level_interface *inf
struct icmp_header *icmphr;
multicast.type = GRUB_NET_NETWORK_LEVEL_PROTOCOL_IPV6;
multicast.ipv6[0] = grub_cpu_to_be64 (0xff02ULL << 48);
multicast.ipv6[1] = grub_cpu_to_be64 (0x02ULL);
multicast.ipv6[0] = grub_cpu_to_be64_compile_time (0xff02ULL << 48);
multicast.ipv6[1] = grub_cpu_to_be64_compile_time (0x02ULL);
err = grub_net_link_layer_resolve (inf, &multicast, &ll_multicast);
if (err)