]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - net/ping.c
net: cosmetic: Un-typedef ICMP_t
[people/ms/u-boot.git] / net / ping.c
index 04a594cf53ae9944576fdc7ce525beb1dfa44d6b..3102521c064d14ed5d2ba71d25639694af984069 100644 (file)
@@ -100,7 +100,7 @@ void ping_start(void)
 
 void ping_receive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len)
 {
-       ICMP_t *icmph = (ICMP_t *)&(ip->udp_src);
+       struct icmp_hdr *icmph = (struct icmp_hdr *)&ip->udp_src;
        IPaddr_t src_ip;
 
        switch (icmph->type) {