]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
net: trivial grub_cpu_to_XX_compile_time cleanup
authorAndrei Borzenkov <arvidjaar@gmail.com>
Fri, 27 Mar 2015 15:58:57 +0000 (18:58 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Fri, 27 Mar 2015 15:58:57 +0000 (18:58 +0300)
grub-core/net/arp.c
grub-core/net/icmp6.c

index 46a56e07f77d431e23003a074600cdf485b86cb2..4b68c4151a11db214602f74e111e7552801d8450 100644 (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.  */
index 78223946031686a256c71e3baa133f489a1e7dce..7953e68ecfafa7b463271b78f0cc41e08205910f 100644 (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)