extern int ppp_exit;
extern int tcp_keepintvl;
extern uint8_t client_ethaddr[6];
-extern char *slirp_special_ip;
+extern const char *slirp_special_ip;
extern int slirp_restrict;
#define PROTO_SLIP 0x1
* THE SOFTWARE.
*/
#include "qemu-common.h"
+#include "qemu-char.h"
#include "slirp.h"
#include "hw/hw.h"
static const uint8_t zero_ethaddr[6] = { 0, 0, 0, 0, 0, 0 };
-char *slirp_special_ip = CTL_SPECIAL;
+const char *slirp_special_ip = CTL_SPECIAL;
int slirp_restrict;
int do_slowtimo;
int link_up;
if (!so)
return;
- ret = soreadbuf(so, buf, size);
+ ret = soreadbuf(so, (const char *)buf, size);
if (ret > 0)
tcp_output(sototcpcb(so));
if (!ex_ptr)
return -EINVAL;
- so->extra = ex_ptr->ex_exec;
+ so->extra = (void *)ex_ptr->ex_exec;
}
return 0;
command == ex_ptr->ex_addr) {
if (ex_ptr->ex_pty == 3) {
so->s = -1;
- so->extra = ex_ptr->ex_exec;
+ so->extra = (void *)ex_ptr->ex_exec;
return 1;
}
do_pty = ex_ptr->ex_pty;