]> git.proxmox.com Git - mirror_qemu.git/blobdiff - slirp/ip_icmp.c
Fix warnings that would be caused by gcc flag -Wwrite-strings
[mirror_qemu.git] / slirp / ip_icmp.c
index 53566c1f71fa7d678ebf68128dbec45542575bc9..2514f9f8314860d70e3b6c40be8420ab4d3114a6 100644 (file)
@@ -207,12 +207,8 @@ end_error:
 
 #define ICMP_MAXDATALEN (IP_MSS-28)
 void
-icmp_error(msrc, type, code, minsize, message)
-     struct mbuf *msrc;
-     u_char type;
-     u_char code;
-     int minsize;
-     char *message;
+icmp_error(struct mbuf *msrc, u_char type, u_char code, int minsize,
+           const char *message)
 {
   unsigned hlen, shlen, s_ip_len;
   register struct ip *ip;