]> git.proxmox.com Git - mirror_qemu.git/blobdiff - slirp/ip_icmp.c
Sparse fixes: NULL use, header order, ANSI prototypes, static
[mirror_qemu.git] / slirp / ip_icmp.c
index 4b27facf18f78e5668e83a77ff7f977b5753e4a7..61dcaf821b48cac919eb5291b58986f0354d69bd 100644 (file)
@@ -68,9 +68,7 @@ static const int icmp_flush[19] = {
  * Process a received ICMP message.
  */
 void
-icmp_input(m, hlen)
-     struct mbuf *m;
-     int hlen;
+icmp_input(struct mbuf *m, int hlen)
 {
   register struct icmp *icp;
   register struct ip *ip=mtod(m, struct ip *);
@@ -319,8 +317,7 @@ end_error:
  * Reflect the ip packet back to the source
  */
 void
-icmp_reflect(m)
-     struct mbuf *m;
+icmp_reflect(struct mbuf *m)
 {
   register struct ip *ip = mtod(m, struct ip *);
   int hlen = ip->ip_hl << 2;