*/
#define ICMP_MAXDATALEN (IP_MSS-28)
-void icmp_error(struct mbuf *msrc, u_char type, u_char code, int minsize, char *message)
+void 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;
void icmp_init(void);
void icmp_cleanup(void);
void icmp_input _P((struct mbuf *, int));
-void icmp_error _P((struct mbuf *, u_char, u_char, int, char *));
+void icmp_error _P((struct mbuf *, u_char, u_char, int, const char *));
void icmp_reflect _P((struct mbuf *));
void icmp_receive(struct socket *so);
void icmp_detach(struct socket *so);
bptr = strdup(ex); /* No need to free() this */
if (do_pty == 1) {
/* Setup "slirp.telnetd -x" */
- argv[i++] = "slirp.telnetd";
- argv[i++] = "-x";
+ argv[i++] = strdup("slirp.telnetd");
+ argv[i++] = strdup("-x");
argv[i++] = bptr;
} else
do {
extern tcp_seq tcp_iss; /* tcp initial send seq # */
-extern char *tcpstates[];
+extern const char *tcpstates[];
#endif
* Since this is only used in "stats socket", we give meaning
* names instead of the REAL names
*/
-char *tcpstates[] = {
+const char *tcpstates[] = {
/* "CLOSED", "LISTEN", "SYN_SENT", "SYN_RCVD", */
"REDIRECT", "LISTEN", "SYN_SENT", "SYN_RCVD",
"ESTABLISHED", "CLOSE_WAIT", "FIN_WAIT_1", "CLOSING",